class_docstr: Based on the pandas conversion and factorization tests:
  
  ref: /pandas/tseries/tests/test_converter.py
       /pandas/tests/test_algos.py:TestFactorize
class_docstr_tok: ["Based","on","the","pandas","conversion","and","factorization","tests",":","ref",":","\/pandas\/tseries\/tests\/test_converter.py","\/pandas\/tests\/test_algos.py",":","TestFactorize"]
code: def test_convert(self, vals):
      np.testing.assert_allclose(
          self.cc.convert(vals, self.ax.units, self.ax),
          range(len(vals)),
      )
  
imports: import warnings
  import pytest
  import numpy
  import matplotlib
  from matplotlib.axes import Axes
  import matplotlib.pyplot
  import matplotlib.category
  from matplotlib.testing.decorators import check_figures_equal
label_desc: Use image node_id 2 for calling the TestStrCategoryConverter obj's underlying member method code with example usage: obj.test_convert(vals) without return types