code: def use_resource_monitor():
      config.enable_resource_monitor()
      yield
      config.disable_resource_monitor()
  
file_path: nipype/nipype/interfaces/base/tests/test_resource_monitor.py
imports: import os
  import pytest
  from ....None import config
  from ....utils.profiler import _use_resources
  from ...base import traits, CommandLine, CommandLineInputSpec
  from ...None import utility
label_desc: Use image node_id 1 for calling a global function with example usage: use_resource_monitor() without return types