code: def int_to_list(x: Union[int, List[Any]]):
      if not (isinstance(x, list) or isinstance(x, int)):
          raise TypeError(
              "Input x should be int or list. Got {} instead.".format(
                  type(x)
              )
          )
      # assert isinstance(x, list) or isinstance(x, int)
      return x if isinstance(x, list) else [x]
  
file_path: graph4nlp/graph4nlp/pytorch/data/utils.py
imports: from typing import Any, List, Tuple, Union
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: int_to_list(x) and returns: unknown