code: def _convert_to_numpy(x):
      if isinstance(x, torch.Tensor):
          return to_numpy(x)
      if isinstance(x, np.ndarray):
          return x
      return None
  
file_path: summarize-from-feedback/summarize_from_feedback/utils/assertions.py
imports: import numpy
  import numpy.testing
  import torch
  from summarize_from_feedback.utils.torch_utils import to_numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_to_numpy(x) and returns: None, to_numpy, x