code: def test_profile_tune_pause_resume():
      enable_profiler("test_profile_tune_pause_resume.json")
      profiler.pause()
      # "test_profile_task" should *not* show up in tuning analysis
      test_profile_task()
      profiler.resume()
      # "test_profile_event" should show up in tuning analysis
      test_profile_event()
      profiler.pause()
      profiler.set_state("stop")
  
imports: from __future__ import print_function
  import time
  import os
  import csv
  import json
  import numpy
  from collections import OrderedDict
  import mxnet
  from mxnet import profiler
  from mxnet.gluon import nn
  from mxnet.test_utils import is_cd_run
  from common import run_in_spawned_process
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_profile_tune_pause_resume() without return types