code: def clean_strip(
      obj: Union[str, List[str]],
      sep: Optional[str] = ",",
      strip: bool = True,
  ) -> List[str]:
      # Allowing list of strings as input as well as comma-separated strings
      if isinstance(obj, list):
          strings = obj
      else:
          strings = obj.split(sep)
  
      if strip:
          strings = [x.strip() for x in strings]
      strings = [x for x in strings if x]
      return strings
  
file_path: ml-cvnets/cvnets/misc/common.py
imports: import argparse
  import os
  import re
  from types import MethodType
  from typing import Dict, List, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from utils import logger
  from utils.common_utils import unwrap_model_fn
  from utils.ddp_utils import is_master, is_start_rank_node
label_desc: Use image node_id 1 for calling a global function with example usage: clean_strip(obj, sep, strip) and returns: strings