code: def _should_aten_fallback(
      name: str,
      opset_version: int,
      operator_export_type: _C_onnx.OperatorExportTypes,
  ):
      # For BUILD_CAFFE2=0 builds, if domain=="aten" and operator_export_type==ONNX_ATEN,
      #   an aten::ATen operator is created regardless of symbolics existence
      # For BUILD_CAFFE2=1, the same applies only if there is no symbolic available
  
      is_exportable_aten_op = registration.registry.is_registered_op(
          name, opset_version
      )
      is_onnx_aten_export = (
          operator_export_type == _C_onnx.OperatorExportTypes.ONNX_ATEN
      )
      is_aten_fallback_export = (
          operator_export_type
          == _C_onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK
      )
      is_caffe2_build = _C_onnx._CAFFE2_ATEN_FALLBACK
  
      if not name.startswith("aten::"):
          return False
  
      if is_caffe2_build:
          if (
              is_onnx_aten_export or is_aten_fallback_export
          ) and not is_exportable_aten_op:
              return True
      else:
          if is_onnx_aten_export or (
              is_aten_fallback_export and not is_exportable_aten_op
          ):
              return True
  
      return False
  
imports: from __future__ import annotations
  import contextlib
  import copy
  import inspect
  import io
  import re
  import textwrap
  import typing
  import warnings
  from typing import Any, Callable, cast, Collection, Dict, List, Mapping, Optional, Sequence, Set, Tuple, Type, Union
  import torch
  import torch._C._onnx
  import torch.jit._trace
  import torch.serialization
  from torch import _C
  from torch.onnx import _constants, _exporter_states, errors, symbolic_caffe2, symbolic_helper
  from torch.onnx._globals import GLOBALS
  from torch.onnx._internal import _beartype, diagnostics, jit_utils, onnx_proto_utils, registration
label_desc: Use image node_id 39 for calling a global function with example usage: _should_aten_fallback(name, opset_version, operator_export_type) and returns: False, False, True, True