code: def test_attr_basic():
      with mx.AttrScope(group="4", data="great"):
          data = mx.symbol.Variable(
              "data",
              attr={
                  "dtype": "data",
                  "group": "1",
                  "force_mirroring": "True",
              },
              lr_mult=1,
          )
          gdata = mx.symbol.Variable("data2")
      assert gdata.attr("group") == "4"
      assert data.attr("group") == "1"
      assert data.attr("lr_mult") == "1"
      assert data.attr("__lr_mult__") == "1"
      assert data.attr("force_mirroring") == "True"
      assert data.attr("__force_mirroring__") == "True"
      data2 = pkl.loads(pkl.dumps(data))
      assert data.attr("dtype") == data2.attr("dtype")
  
file_path: mxnet/tests/python/unittest/test_attr.py
imports: import os
  import mxnet
  from common import models
  import pickle
label_desc: Use image node_id 1 for calling a global function with example usage: test_attr_basic() without return types