code: def test_terminalwriter_width_bogus(monkeypatch: MonkeyPatch) -> None:
      monkeypatch.setattr(
          shutil, "get_terminal_size", mock.Mock(return_value=(10, 10))
      )
      monkeypatch.delenv("COLUMNS", raising=False)
      tw = terminalwriter.TerminalWriter()
      assert tw.fullwidth == 80
  
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 2 for calling a global function with example usage: test_terminalwriter_width_bogus(monkeypatch) without return types