code: def run(names):
      """Run selected benchmarks.
  
      Args:
          names (tuple): Benchmark names.
  
      Raises:
          BadParameter: if any run name is invalid or duplicated.
  
      """
      if not names:
          raise click.BadParameter("Empty names!")
  
      if len(names) != len(set(names)):
          raise click.BadParameter("Duplicate names!")
  
      options = _get_all_options()
  
      for name in names:
          if name not in options:
              raise click.BadParameter(
                  "Invalid run name! Make sure every name can be found in "
                  "`garage_benchmark list`!"
              )
  
      for name in names:
          options[name]()
  
file_path: garage/benchmarks/src/garage_benchmarks/run_benchmarks.py
imports: import inspect
  import click
  from garage_benchmarks import benchmark_algos, benchmark_auto, benchmark_baselines, benchmark_policies, benchmark_q_functions
label_desc: Use image node_id 3 for calling a global function with example usage: run(names) without return types