code: def test_funcname_cytoolz():
      @curry
      def foo(a, b, c):
          pass
  
      assert funcname(foo) == "foo"
      assert funcname(foo(1)) == "foo"
  
      def bar(a, b):
          return a + b
  
      c_bar = curry(bar, 1)
      assert funcname(c_bar) == "bar"
  
file_path: lightning-flash/tests/core/serve/test_dag/test_utils.py
imports: import operator
  from functools import partial
  import numpy
  import pytest
  from flash.core.serve.dag.utils import funcname, partial_by_order
  from flash.core.utilities.imports import _CYTOOLZ_AVAILABLE, _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 2 for calling a global function with example usage: test_funcname_cytoolz() and returns: unknown