code: def convert_to_list(python_input):
      if isinstance(python_input, torch.Tensor):
          return [python_input]
      else:
          return list(python_input)
  
imports: from collections import namedtuple
  import unittest
  import os
  import warnings
  import shutil
  import torch
  import torch.utils.cpp_extension
  import torch.testing._internal.common_nn
  from torch.testing._internal.common_cuda import TEST_CUDA
label_desc: Use image node_id 4 for calling a global function with example usage: convert_to_list(python_input) and returns: list, list