code: def valid_torch_name(torch_name: Union[TorchName, str]) -> bool:
      """Return whether the given torch name is a valid torch type name."""
      return torch_name in _TORCH_NAME_TO_SCALAR_TYPE
  
file_path: pytorch/torch/onnx/_type_utils.py
imports: from __future__ import annotations
  import enum
  import typing
  from typing import Dict, Literal, Optional, Union
  import torch
  from torch._C import _onnx
  from torch.onnx import errors
  from torch.onnx._internal import _beartype
label_desc: Use image node_id 2 for calling a global function with example usage: valid_torch_name(torch_name) and returns: unknown