code: def to_list(data: Union[tuple, list, Any]):
      """
      If input is tuple, it is converted to list. If it's list, it is returned untouched. Otherwise
      returns a single-element list of the data.
      :return: list-ified data
      """
      if isinstance(data, list):
          pass
      elif isinstance(data, tuple):
          data = list(data)
      else:
          data = [data]
      return data
  
imports: import inspect
  from typing import Any, Dict, Generator, Iterable, List, Tuple, Union
  from types import ModuleType
  import mxnet
  from mxnet import gluon, nd
  from mxnet.ndarray import NDArray
  import numpy
  from rl_coach.core_types import GradientClippingMethod
label_desc: Use image node_id 9 for calling a global function with example usage: to_list(data) and returns: data