code: def cast(*, x, dtype):
      for str_dtype, tf_dtype in DTYPE_MAPPING.items():
          if x.dtype == tf_dtype and dtype == str_dtype:
              return x
      else:
          return tf.cast(x=x, dtype=get_dtype(type=dtype))
  
file_path: tensorforce/tensorforce/core/utils/tf_util.py
imports: import tensorflow
  from tensorforce import TensorforceError
label_desc: Use image node_id 12 for calling a global function with example usage: cast() and returns: tf, x