code: def _transfer_to_cpu(data, device):
      if device.lower() == "gpu":
          return data.as_cpu()
      return data
  
imports: from nvidia.dali.backend import TensorCPU, TensorListCPU, TensorGPU, TensorListGPU
label_desc: Use image node_id 1 for calling a global function with example usage: _transfer_to_cpu(data, device) and returns: data, data