code: def test_texinfo_escape_id(app, status, warning):
      settings = Mock(
          title="", texinfo_dir_entry="", texinfo_elements={}
      )
      document = new_document("", settings)
      translator = app.builder.create_translator(document, app.builder)
  
      assert translator.escape_id("Hello world") == "Hello world"
      assert translator.escape_id("Hello    world") == "Hello world"
      assert (
          translator.escape_id("Hello   Sphinx   world")
          == "Hello Sphinx world"
      )
      assert translator.escape_id("Hello:world") == "Hello world"
      assert translator.escape_id("Hello(world)") == "Hello world"
      assert translator.escape_id("Hello world.") == "Hello world"
      assert translator.escape_id(".") == "."
  
imports: import os
  import re
  import subprocess
  from pathlib import Path
  from subprocess import CalledProcessError
  from unittest.mock import Mock
  import pytest
  from sphinx.builders.texinfo import default_texinfo_documents
  from sphinx.config import Config
  from sphinx.testing.util import strip_escseq
  from sphinx.util.docutils import new_document
  from sphinx.writers.texinfo import TexinfoTranslator
  from tests.test_builders.test_build_html import ENV_WARNINGS
label_desc: Use image node_id 6 for calling a global function with example usage: test_texinfo_escape_id(app, status, warning) without return types