code: def test_aggregate_duplication():
      file_name = "test_aggregate_duplication.json"
      enable_profiler(
          profile_filename=file_name,
          run=True,
          continuous_dump=True,
          aggregate_stats=True,
      )
      # clear aggregate stats
      profiler.dumps(reset=True)
      inp = mx.nd.zeros(shape=(100, 100))
      y = mx.nd.sqrt(inp)
      inp = inp + 1
      inp = inp + 1
      mx.nd.waitall()
      profiler.dump(False)
      debug_str = profiler.dumps(format="json")
      target_dict = json.loads(debug_str)
      assert (
          "Time" in target_dict
          and "operator" in target_dict["Time"]
          and "sqrt" in target_dict["Time"]["operator"]
          and "Count" in target_dict["Time"]["operator"]["sqrt"]
          and "_plus_scalar" in target_dict["Time"]["operator"]
          and "Count" in target_dict["Time"]["operator"]["_plus_scalar"]
      )
      # they are called once and twice respectively
      assert target_dict["Time"]["operator"]["sqrt"]["Count"] == 1
      assert (
          target_dict["Time"]["operator"]["_plus_scalar"]["Count"] == 2
      )
      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 13 for calling a global function with example usage: test_aggregate_duplication() without return types