code: def test_api_all(self):
      expected = set(
          self.public_lib
          + self.misc
          + self.modules
          + self.classes
          + self.funcs
          + self.funcs_option
          + self.funcs_read
          + self.funcs_json
          + self.funcs_to
      ) - set(self.deprecated_classes)
      actual = set(pd.__all__)
  
      extraneous = actual - expected
      assert not extraneous
  
      missing = expected - actual
      assert not missing
  
imports: from __future__ import annotations
  import pytest
  import pandas
  from pandas import api
  import pandas._testing
  from pandas.api import extensions, indexers, interchange, types, typing
label_desc: Use image node_id 2 for calling the TestPDApi obj's underlying member method code with example usage: obj.test_api_all() without return types