code: def test_terminalwriter_computes_width(
      monkeypatch: MonkeyPatch,
  ) -> None:
      monkeypatch.setattr(
          terminalwriter, "get_terminal_width", lambda: 42
      )
      tw = terminalwriter.TerminalWriter()
      assert tw.fullwidth == 42
  
imports: import io
  import os
  import re
  import shutil
  import sys
  from pathlib import Path
  from typing import Generator
  from typing import Optional
  from unittest import mock
  import pytest
  from _pytest._io import terminalwriter
  from _pytest.monkeypatch import MonkeyPatch
label_desc: Use image node_id 3 for calling a global function with example usage: test_terminalwriter_computes_width(monkeypatch) without return types