code: def to_list(value: Any) -> List[Any]:
      """
      Convert value or list to list of values.
      If already list, return object directly
  
      Args:
          value (Any): value to convert
  
      Returns:
          List[Any]: list of values
      """
      if isinstance(value, (tuple, list)) and not isinstance(
          value, rnn.PackedSequence
      ):
          return value
      else:
          return [value]
  
imports: from collections import namedtuple
  from contextlib import redirect_stdout
  import inspect
  import os
  from typing import Any, Callable, Dict, List, Tuple, Union
  import lightning.pytorch
  import torch
  from torch import nn
  from torch.fft import irfft, rfft
  import torch.nn.functional
  from torch.nn.utils import rnn
label_desc: Use image node_id 11 for calling a global function with example usage: to_list(value) and returns: value, list