code: def filter_colo_parameters(*args, **kwargs):
      param_list = []
  
      def get_colo_parameters(element) -> None:
          if isinstance(element, list) or isinstance(element, tuple):
              for e in element:
                  get_colo_parameters(e)
          elif isinstance(element, dict):
              raise RuntimeError(
                  "Found Dict: ColoParameter can't deal with complicated arguments."
              )
          elif isinstance(element, ColoParameter):
              param_list.append(element)
          return
  
      for a in args:
          get_colo_parameters(a)
      for v in kwargs.values():
          get_colo_parameters(v)
  
      return param_list
  
file_path: colossalai/colossalai/tensor/colo_parameter.py
imports: from typing import Optional
  import torch
  from colossalai.tensor.colo_tensor import ColoTensor
  from colossalai.tensor.param_op_hook import ColoParamOpHookManager
  from .colo_tensor import _convert_output
label_desc: Use image node_id 2 for calling a global function with example usage: filter_colo_parameters() and returns: param_list