code: def cast_ndarray_type(x):
      if x.dtype == np.int64:
          return x.astype(np.int32)
      elif x.dtype == np.float64:
          return x.astype(np.float32)
      else:
          return x
  
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: cast_ndarray_type(x) and returns: x, x, x