code: def test_function_with_imports(tmpdir):
      tmpdir.chdir()
  
      node = pe.Node(
          utility.Function(
              input_names=["size"],
              output_names=["random_array"],
              function=make_random_array,
              imports=["import numpy as np"],
          ),
          name="should_not_fail",
      )
      print(node.inputs.function_str)
      node.inputs.size = 10
      node.run()
  
file_path: nipype/nipype/interfaces/utility/tests/test_wrappers.py
imports: import os
  import pytest
  from nipype.interfaces import utility
  import nipype.pipeline.engine
label_desc: Use image node_id 5 for calling a global function with example usage: test_function_with_imports(tmpdir) without return types