code: def test_indexer():
      assert py_functional.indexer(1)({1: 2}) == 2
      with pytest.raises(KeyError):
          py_functional.indexer("1")({1: 2})
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_indexer() without return types