code: def test_print_none_width(self):
      # GH10087
      a = Series(Categorical([1, 2, 3, 4]))
      exp = (
          "0    1\n1    2\n2    3\n3    4\n"
          "dtype: category\nCategories (4, int64): [1, 2, 3, 4]"
      )
  
      with option_context("display.width", None):
          assert exp == repr(a)
  
imports: import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  from pandas import Categorical, CategoricalDtype, CategoricalIndex, Index, Series, date_range, option_context, period_range, timedelta_range
label_desc: Use image node_id 3 for calling the TestCategoricalRepr obj's underlying member method code with example usage: obj.test_print_none_width() without return types