code: def loader_options(key, params):
      """
      Builds a decorator which will append a list of click parameters based on
      a combination of prefix & parameter name
  
      loader_options('foo', ['bar', 'baz']) => click.option('--foo-bar'), click.option('--foo-baz')
  
      :param key: parameter prefix
      :type key: str
      :param params: parameters names
      :type params: list
      :return: filter
      :rtype: func
      """
  
      def decorator(f):
          for p in params:
              f = click.option(
                  "--" + key + "-" + p,
                  help="Override {} {}".format(key, p),
              )(f)
          return f
  
      return decorator
  
imports: import logging
  import requests
  import socket
  import sys
  from builtins import str
  from datetime import datetime
  import click
  import pkg_resources
  from six import PY3, BytesIO, StringIO, string_types
  from dtale.utils import make_list
label_desc: Use image node_id 2 for calling a global function with example usage: loader_options(key, params) and returns: decorator, f