code: def toterminal(self, tw):
      for reprlocation, lines in self.reprlocation_lines:
          for line in lines:
              tw.line(line)
          reprlocation.toterminal(tw)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import platform
  import sys
  import traceback
  import warnings
  from contextlib import contextmanager
  import pytest
  from _pytest._code.code import ExceptionInfo
  from _pytest._code.code import ReprFileLocation
  from _pytest._code.code import TerminalRepr
  from _pytest.compat import safe_getattr
  from _pytest.fixtures import FixtureRequest
  from _pytest.outcomes import Skipped
  from _pytest.warning_types import PytestWarning
label_desc: Use image node_id 2 for calling the ReprFailDoctest obj's underlying member method code with example usage: obj.toterminal(tw) without return types