code: def __enter__(self):
      self.rec = self.cw.__enter__()
  
file_path: statsmodels/statsmodels/compat/pytest.py
imports: from __future__ import annotations
  import warnings
  from _pytest.recwarn import WarningsChecker
  from pytest import warns
label_desc: Use image node_id 2 for calling the NoWarningsChecker obj's underlying member method code with example usage: obj.__enter__() without return types