code: def test_nvtx_ranges_present_in_profile():
      # Build a system independent wrapper to execute simple_forward with nvprof
      # This requires nvprof to be on your path (which should be the case for most GPU workstations with cuda installed).
      simple_forward_path = os.path.realpath(__file__)
      simple_forward_path = simple_forward_path.replace(
          "test_nvtx", "simple_forward"
      )
  
      process = Popen(
          ["nvprof", sys.executable, simple_forward_path],
          stdout=PIPE,
          stderr=PIPE,
      )
      (output, profiler_output) = process.communicate()
      process.wait()
      profiler_output = profiler_output.decode("ascii")
  
      # Verify that some of the NVTX ranges we should have created are present
      # Verify that we have NVTX ranges for our simple operators.
      assert 'Range "FullyConnected"' in profiler_output
      assert 'Range "_zeros"' in profiler_output
  
      # Verify that we have some expected output from the engine.
      assert 'Range "WaitForVar"' in profiler_output
  
imports: import os
  import pytest
  import mxnet
  import sys
  from subprocess import Popen, PIPE
label_desc: Use image node_id 1 for calling a global function with example usage: test_nvtx_ranges_present_in_profile() without return types