code: def __call__(self, extra_args=None, exit=False):
      try:
          import pytest
  
          if not parse(pytest.__version__) >= Version("3.0"):
              raise ImportError
          if extra_args is None:
              extra_args = ["--tb=short", "--disable-pytest-warnings"]
          cmd = [self.package_path] + extra_args
          print("Running pytest " + " ".join(cmd))
          status = pytest.main(cmd)
          if exit:
              print(f"Exit status: {status}")
              sys.exit(status)
      except ImportError:
          raise ImportError("pytest>=3 required to run the test")
  
file_path: statsmodels/statsmodels/tools/_testing.py
imports: import os
  import sys
  from packaging.version import Version, parse
  import numpy
  from numpy.testing import assert_allclose, assert_
  import pandas
label_desc: Use image node_id 2 for calling the PytestTester obj's underlying member method code with example usage: obj.__call__(extra_args, exit) without return types