code: def _to_list(v):
      if not isinstance(v, (list, tuple)):
          return [v]
      return v
  
file_path: PaddleDetection/ppdet/modeling/heads/roi_extractor.py
imports: import paddle
  from ppdet.core.workspace import register
  from ppdet.modeling import ops
  import paddle.nn
label_desc: Use image node_id 1 for calling a global function with example usage: _to_list(v) and returns: v, list