code: def test_tab_complete_warning(self, ip, frame_or_series):
      # GH 16409
      pytest.importorskip("IPython", minversion="6.0.0")
      from IPython.core.completer import provisionalcompleter
  
      if frame_or_series is DataFrame:
          code = "from pandas import DataFrame; obj = DataFrame()"
      else:
          code = "from pandas import Series; obj = Series(dtype=object)"
  
      ip.run_cell(code)
      # GH 31324 newer jedi version raises Deprecation warning;
      #  appears resolved 2021-02-02
      with tm.assert_produces_warning(
          None, raise_on_extra_warnings=False
      ):
          with provisionalcompleter("ignore"):
              list(ip.Completer.completions("obj.", 1))
  
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 20 for calling the TestDataFrameMisc obj's underlying member method code with example usage: obj.test_tab_complete_warning(ip, frame_or_series) without return types