code: def _convert_ar_to_numpy(ar):
      if isinstance(ar, list):
          ar = np.asarray(ar)
      else:
          lib_name = _get_backend_lib_ar(ar)
          if lib_name == "torch":
              ar = ar.cpu().numpy()
          elif lib_name == "cupy":
              ar = ar.get()
          elif lib_name == "cudf":
              ar = ar.values.get()
          elif lib_name == "numpy":
              ar = ar
          else:
              raise NotImplementedError(
                  f"{lib_name=} not supported yet for conversion to numpy"
              )
      return ar
  
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _convert_ar_to_numpy(ar) and returns: ar