code: def test_continuous_profile_and_instant_marker():
      file_name = "test_continuous_profile_and_instant_marker.json"
      enable_profiler(file_name, True, True, True)
      python_domain = profiler.Domain(
          "PythonDomain::test_continuous_profile"
      )
      last_file_size = 0
      for i in range(5):
          profiler.Marker(
              python_domain, "StartIteration-" + str(i)
          ).mark("process")
          test_profile_event(False)
          test_profile_counter(False)
          profiler.dump(False)
          # File size should keep increasing
          new_file_size = os.path.getsize(file_name)
          assert new_file_size >= last_file_size
          last_file_size = new_file_size
      profiler.dump(False)
      debug_str = profiler.dumps()
      assert len(debug_str) > 0
      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 10 for calling a global function with example usage: test_continuous_profile_and_instant_marker() without return types