code: def test_get_callable_dict():
      d = get_callable_dict(A())
      assert type(d["a"]) is A
  
      d = get_callable_dict([A(), b])
      assert type(d["a"]) is A
      assert d["b"] == b
  
      d = get_callable_dict({"one": A(), "two": b})
      assert type(d["one"]) is A
      assert d["two"] == b
  
file_path: lightning-flash/tests/core/test_utils.py
imports: import os
  import pytest
  from flash.core.data.utils import download_data
  from flash.core.utilities.apply_func import get_callable_dict, get_callable_name
  from flash.core.utilities.imports import _TOPIC_CORE_AVAILABLE
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_callable_dict() without return types