code: def limits(f):
      from numpy import array, bool_, uint8, uint16, int32, int64
  
      code = f.dtype
      if code == bool_:
          return 0, 1
      if code == uint8:
          return 0, 255
      if code == uint16:
          return 0, 65535
      if code == int32:
          return -2147483647, 2147483647
      if code == int64:
          return -(2**63), 2**63 - 1
  
      raise ValueError(
          "pymorph.limits: does not accept this typecode: %s" % code
      )
  
file_path: mahotas/mahotas/tests/pymorph_copy.py
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: limits(f) and returns: int,  int, int,  int, int,  int, unknown,  int, unknown,  unknown