code: def setup_loader_options():
      """
      Utility function executed at runtime to find dynamic CLI options as well as the defaults and create their
      `click` decorators to keyword arguments will be processed accordingly.
  
      """
      build_loaders()
  
      def decorator(f):
          for cli_loader in LOADERS.values():
              if len(cli_loader.LOADER_PROPS):
                  for p in cli_loader.LOADER_PROPS:
                      prop_name = "--{}".format(cli_loader.LOADER_KEY)
                      if isinstance(p, str):
                          if len(p):
                              prop_name = "{}-{}".format(prop_name, p)
                          f = click.option(
                              prop_name,
                              help="Override {}".format(prop_name),
                          )(f)
                      elif isinstance(p, dict):
                          p_names = make_list(p.get("name"))
                          prop_names = []
                          for p_name in p_names:
                              if len(p_name):
                                  prop_names.append(
                                      "{}-{}".format(prop_name, p_name)
                                  )
                              else:
                                  prop_names.append(prop_name)
                          opt_kwargs = {
                              k: v for k, v in p.items() if k != "name"
                          }
                          f = click.option(*prop_names, **opt_kwargs)(f)
                      else:
                          raise NotImplementedError(
                              "You have specified an unknown type for a value in {} LOADER_PROPS: {}".format(
                                  cli_loader.LOADER_KEY, type(p)
                              )
                          )
              else:
                  f = click.option(
                      "--{}".format(cli_loader.LOADER_KEY),
                      is_flag=True,
                      help="Use {} loader".format(
                          cli_loader.LOADER_KEY
                      ),
                  )(f)
          return f
  
      return decorator
  
file_path: dtale/dtale/cli/loaders/__init__.py
imports: import os
  import platform
  from logging import getLogger
  import click
  from dtale.cli.loaders import arctic_loader, arcticdb_loader, csv_loader, excel_loader, json_loader, parquet_loader, r_loader, sqlite_loader
  from dtale.utils import make_list
label_desc: Use image node_id 8 for calling a global function with example usage: setup_loader_options() and returns: decorator, f