code: def _get_named_tuple_like_type(func):
      if (
          hasattr(torch, "return_types")
          and hasattr(func, "__name__")
          and hasattr(torch.return_types, func.__name__)
          and isinstance(
              getattr(torch.return_types, func.__name__), type
          )
      ):
          return getattr(torch.return_types, func.__name__)
      return None
  
imports: from __future__ import annotations
  import functools
  import warnings
  from copy import deepcopy
  from typing import Any, Sequence
  import numpy
  import torch
  import monai
  from monai.config.type_definitions import NdarrayTensor
  from monai.data.meta_obj import MetaObj, get_track_meta
  from monai.data.utils import affine_to_spacing, decollate_batch, list_data_collate, remove_extra_metadata
  from monai.utils import look_up_option
  from monai.utils.enums import LazyAttr, MetaKeys, PostFix, SpaceKeys
  from monai.utils.type_conversion import convert_data_type, convert_to_dst_type, convert_to_numpy, convert_to_tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _get_named_tuple_like_type(func) and returns: None, getattr