code: def test_func_to_str_err():
      bad_src = "obbledygobbledygook"
      with pytest.raises(RuntimeError):
          create_function_from_source(bad_src)
  
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 3 for calling a global function with example usage: test_func_to_str_err() without return types