code: def _get_dtype(array_or_dtype):
      """Utility function for result_type"""
      if isinstance(array_or_dtype, (ndarray, onp.ndarray)):
          return array_or_dtype.dtype
      elif isinstance(array_or_dtype, onp.dtype):
          return array_or_dtype
      else:
          raise ValueError(
              "Inputs of result_type must be ndarrays or dtypes"
          )
  
file_path: mxnet/python/mxnet/numpy/type_functions.py
imports: from typing import NamedTuple
  import numpy
  from .multiarray import ndarray
  from .utils import _type_promotion_table
label_desc: Use image node_id 4 for calling a global function with example usage: _get_dtype(array_or_dtype) and returns: array_or_dtype, array_or_dtype