code: def get_py_dtype(np_dtype):
      '''
      Args:
  
          np_dtype (numpy.dtype)
  
      Returns:
  
          (type) : Python data type that corresponds to the specified numpy
              dtype.
      '''
      if np_dtype.type == np.object_:
          return object
      elif hasattr(np_dtype.type(0), 'item'):
          return type(np_dtype.type(0).item())
      else:
          return type(np_dtype.type(0)f get_py_dtype(np_dtype):
      '''
      Args:
  
          np_dtype (numpy.dtype)
  
      Returns:
  
          (type) : Python data type that corresponds to the specified numpy
              dtype.
      '''
      if np_dtype.type == np.object_:
          return object
      elif hasattr(np_dtype.type(0), 'item'):
          return type(np_dtype.type(0).item())
      else:
          return type(np_dtype.type(0))
docs: Args:
  
          np_dtype (numpy.dtype)
  
      Returns:
  
          (type) : Python data type that corresponds to the specified numpy
              dtype.