code: def parse_args(args: str) -> list[int | str]:
      ret: list[int | str] = []
      for arg in map(lambda s: s.strip(), args.split(",")):
          try:
              ret.append(int(arg))
          except ValueError:
              ret.append(arg)
      return ret
  
file_path: optuna/benchmarks/asv/optimize.py
imports: from __future__ import annotations
  from typing import cast
  import optuna
  from optuna.samplers import BaseSampler
  from optuna.samplers import CmaEsSampler
  from optuna.samplers import NSGAIISampler
  from optuna.samplers import RandomSampler
  from optuna.samplers import TPESampler
  from optuna.testing.storages import StorageSupplier
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args(args) and returns: ret