docstr: Test that `AxisError` can be pickled.
docstr_tok: ["Test","that","`","AxisError","`","can","be","pickled","."]
code: def test_pickling(self, args):
      """Test that `AxisError` can be pickled."""
      exc = np.AxisError(*args)
      exc2 = pickle.loads(pickle.dumps(exc))
  
      assert type(exc) is type(exc2)
      for name in ("axis", "ndim", "args"):
          attr1 = getattr(exc, name)
          attr2 = getattr(exc2, name)
          assert attr1 == attr2, name
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/tests/test__exceptions.py
imports: import pickle
  import pytest
  import numpy
label_desc: Use image node_id 2 for calling the TestAxisError obj's underlying member method code with example usage: obj.test_pickling(args) without return types