Torch to onnx supported operators dict

I would like to create a script which takes the name of a specific torch operator, and tells me if this operator is supported by onnx. That’s important for me that I could do it using internal torch.onnx APIs, without using the list provided by the torch’s website. The script should be up to date according to the torch version I’m using in the script, so managing such a dict manually according to the website list is impractical.

Is there such an API?
I tried to explore the implementation of torch.onnx.export, but it contains lots of hidden APIs and I couldn’t find something good enough.

Update- I found such an internal method, but I also need to make the exact conversion from torch operator’s name to the converted onnx operator’s name.