code: def test_bad_docstrings(self, capsys, klass, func, msgs) -> None:
      result = validate_docstrings.pandas_validate(
          self._import_path(klass=klass, func=func)
      )
      for msg in msgs:
          assert msg in " ".join([err[1] for err in result["errors"]])
  
imports: import io
  import textwrap
  import pytest
  from scripts import validate_docstrings
label_desc: Use image node_id 3 for calling the TestValidator obj's underlying member method code with example usage: obj.test_bad_docstrings(capsys, klass, func, msgs) without return types