code: def run_instance(interface, options):
      print("setting function inputs")
  
      for input_name, _ in list(interface.inputs.items()):
          if getattr(options, input_name) is not None:
              value = getattr(options, input_name)
              try:
                  setattr(interface.inputs, input_name, value)
              except ValueError as e:
                  print(
                      f"Error when setting the value of {input_name}: '{str(e)}'"
                  )
  
      print(interface.inputs)
      res = interface.run()
      print(res.outputs)
  
file_path: nipype/nipype/utils/nipype_cmd.py
imports: import os
  import argparse
  import inspect
  import sys
  from ..interfaces.base import Interface, InputMultiPath, traits
  from ..interfaces.base.support import get_trait_desc
  from .misc import str2bool
label_desc: Use image node_id 3 for calling a global function with example usage: run_instance(interface, options) without return types