code: def py_dtype(dtype):
      if (
          dtype == "float"
      ):  # or dtype == float or dtype == np.float32 or dtype == tf.float32:
          return float
      elif dtype == "int" or dtype == "long":
          # dtype == int or dtype == np.int32 or dtype == tf.int32 or
          # or dtype == np.int64 or dtype == tf.int64
          return int
      elif (
          dtype == "bool"
      ):  # or dtype == bool or dtype == np.bool8 or dtype == tf.bool:
          return bool
      else:
          raise TensorforceError.value(
              name="util.py_dtype", argument="dtype", value=dtype
          )
  
imports: from datetime import datetime
  import importlib
  import logging
  import numpy
  import tensorflow
  from tensorforce import TensorforceError
label_desc: Use image node_id 9 for calling a global function with example usage: py_dtype(dtype) and returns: float, int, bool