code: def type_range(dtype):
      if dtype in [np.half, np.single, np.double]:
          return (np.finfo(dtype).min, np.finfo(dtype).max)
      else:
          return (np.iinfo(dtype).min, np.iinfo(dtype).max)
  
imports: import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  import nvidia.dali.types
  import numpy
  from test_utils import compare_pipelines, python_function
  from test_utils import RandomDataIterator
  from sequences_test_utils import ArgCb, video_suite_helper
  import random
label_desc: Use image node_id 2 for calling a global function with example usage: type_range(dtype) and returns: np,  np, np,  np