code: def py_type(self):
      if self.type == "bool":
          return bool
      elif self.type == "int":
          return int
      elif self.type == "float":
          return float
  
imports: from functools import total_ordering
  import numpy
  import tensorflow
  from tensorforce import TensorforceError, util
  from tensorforce.core.utils import tf_util
label_desc: Use image node_id 5 for calling the TensorSpec obj's underlying member method code with example usage: obj.py_type() and returns: bool, int, float