code: def _as_list(value) -> List:
      if isinstance(value, Sequence) and not isinstance(value, str):
          return list(value)
      return [value]
  
imports: import warnings
  from numbers import Number
  from typing import Dict, List, Optional, Sequence, Union, cast
  import numpy
  import pandas
label_desc: Use image node_id 3 for calling a global function with example usage: _as_list(value) and returns: list, list