code: def test_display_max_dir_items(self):
      # display.max_dir_items increaes the number of columns that are in __dir__.
      columns = ["a" + str(i) for i in range(420)]
      values = [range(420), range(420)]
      df = DataFrame(values, columns=columns)
  
      # The default value for display.max_dir_items is 100
      assert "a99" in dir(df)
      assert "a100" not in dir(df)
  
      with option_context("display.max_dir_items", 300):
          df = DataFrame(values, columns=columns)
          assert "a299" in dir(df)
          assert "a300" not in dir(df)
  
      with option_context("display.max_dir_items", None):
          df = DataFrame(values, columns=columns)
          assert "a419" in dir(df)
  
imports: from copy import deepcopy
  import inspect
  import pydoc
  import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  from pandas._config.config import option_context
  import pandas
  from pandas import DataFrame, Series, date_range, timedelta_range
  import pandas._testing
label_desc: Use image node_id 5 for calling the TestDataFrameMisc obj's underlying member method code with example usage: obj.test_display_max_dir_items() without return types