code: def test_loader_options():
      opts = loader_options("test", ["prop1", "prop2"])
  
      def _options_test(prop1=None, prop2=None):
          return prop1 + prop2
  
      decorated_f = opts(_options_test)
      assert ["test_prop1", "test_prop2"] == [
          o.name for o in decorated_f.__click_params__
      ]
  
file_path: dtale/tests/dtale/test_clickutils.py
imports: import logging
  from builtins import getattr
  import mock
  import pytest
  from dtale.cli.clickutils import get_loader_options, loader_options, retrieve_meta_info_and_version, setup_logging
  from tests import ExitStack
label_desc: Use image node_id 2 for calling a global function with example usage: test_loader_options() and returns: unknown