code: def test_get_loader_options():
      ret = get_loader_options(
          "foo", None, dict(foo_bar=1, baz_bar=2, biz=3)
      )
      assert len(ret) == 0
      ret = get_loader_options(
          "foo", ["bar"], dict(foo_bar=1, baz_bar=2, biz=3)
      )
      assert ret["bar"] == 1
      ret = get_loader_options(
          "foo", [dict(name="bar")], dict(foo_bar=1, baz_bar=2, biz=3)
      )
      assert ret["bar"] == 1
  
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 3 for calling a global function with example usage: test_get_loader_options() without return types