docstr: Write lines of source code possibly highlighted.
  
  Keeping this private for now because the API is clunky. We should discuss how
  to evolve the terminal writer so we can have more precise color support, for example
  being able to write part of a line in one color and the rest in another, and so on.
docstr_tok: ["Write","lines","of","source","code","possibly","highlighted",".","Keeping","this","private","for","now","because","the","API","is","clunky",".","We","should","discuss","how","to","evolve","the","terminal","writer","so","we","can","have","more","precise","color","support",",","for","example","being","able","to","write","part","of","a","line","in","one","color","and","the","rest","in","another",",","and","so","on","."]
code: def _write_source(
      self, lines: Sequence[str], indents: Sequence[str] = ()
  ) -> None:
      """Write lines of source code possibly highlighted.
  
      Keeping this private for now because the API is clunky. We should discuss how
      to evolve the terminal writer so we can have more precise color support, for example
      being able to write part of a line in one color and the rest in another, and so on.
      """
      if indents and len(indents) != len(lines):
          raise ValueError(
              "indents size ({}) should have same size as lines ({})".format(
                  len(indents), len(lines)
              )
          )
      if not indents:
          indents = [""] * len(lines)
      source = "\n".join(lines)
      new_lines = self._highlight(source).splitlines()
      for indent, new_line in zip(indents, new_lines):
          self.line(indent + new_line)
  
imports: import os
  import shutil
  import sys
  from typing import Optional
  from typing import Sequence
  from typing import TextIO
  from .wcwidth import wcswidth
  from _pytest.compat import final
label_desc: Use image node_id 10 for calling the TerminalWriter obj's underlying member method code with example usage: obj._write_source(lines, indents) without return types