code: def test_func_to_str():
      def func1(x):
          return x**2
  
      # Should be ok with both functions!
      for f in _func1, func1:
          f_src = getsource(f)
          f_recreated = create_function_from_source(f_src)
          assert f(2.3) == f_recreated(2.3)
  
file_path: nipype/nipype/utils/tests/test_functions.py
imports: import pytest
  from nipype.utils.functions import getsource, create_function_from_source
label_desc: Use image node_id 2 for calling a global function with example usage: test_func_to_str() and returns: unknown