code: def cast(x, dtype, name=None):
      return ivy.astype(x, dtype, copy=False)
  
imports: import ivy
  import ivy.functional.frontends.tensorflow
  import ivy.functional.frontends.numpy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back, handle_tf_dtype
label_desc: Use image node_id 2 for calling a global function with example usage: cast(x, dtype, name) and returns: ivy