code: def test_logical_line_offset_out_of_bounds():
      """Ensure that logical line offsets that are out of bounds do not crash."""
  
      file_checker = mock_file_checker_with_plugin(
          plugin_func_out_of_bounds
      )
  
      logical_ret = (
          "",
          'print("xxxxxxxxxxx")',
          [
              (0, (1, 0)),
              (5, (1, 5)),
              (6, (1, 6)),
              (19, (1, 19)),
              (20, (1, 20)),
          ],
      )
      with mock.patch.object(
          FileProcessor,
          "build_logical_line",
          return_value=logical_ret,
      ):
          file_checker.run_logical_checks()
          assert file_checker.results == [("L100", 0, 0, "test", None)]
  
imports: from __future__ import annotations
  import importlib.metadata
  import sys
  from unittest import mock
  import pytest
  from flake8 import checker
  from flake8.plugins import finder
  from flake8.processor import FileProcessor
label_desc: Use image node_id 13 for calling a global function with example usage: test_logical_line_offset_out_of_bounds() without return types