code: def _as_list(obj):
      """A utility function that converts the argument to a list if it is not already.
  
      Parameters
      ----------
      obj : object
  
      Returns
      -------
      If `obj` is a list or tuple, return it. Otherwise, return `[obj]` as a
      single-element list.
  
      """
      if isinstance(obj, (list, tuple)):
          return obj
      else:
          return [obj]
  
imports: import re
  import atexit
  import ctypes
  import os
  import sys
  import inspect
  import platform
  import numpy
  from .None import libinfo
label_desc: Use image node_id 20 for calling a global function with example usage: _as_list(obj) and returns: obj, list