code: def is_skipped_module(
      filename: str, opts: Any, _excludes: Sequence[re.Pattern[str]]
  ) -> bool:
      """Check if we want to skip this module."""
      if not path.exists(filename):
          # skip if the file doesn't exist
          return True
      if (
          path.basename(filename).startswith("_")
          and not opts.includeprivate
      ):
          # skip if the module has a "private" name
          return True
      return False
  
imports: from __future__ import annotations
  import argparse
  import fnmatch
  import glob
  import locale
  import os
  import re
  import sys
  from copy import copy
  from importlib.machinery import EXTENSION_SUFFIXES
  from os import path
  from typing import TYPE_CHECKING, Any
  import sphinx.locale
  from sphinx import __display_version__, package_dir
  from sphinx.cmd.quickstart import EXTENSIONS
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.osutil import FileAvoidWrite, ensuredir
  from sphinx.util.template import ReSTRenderer
label_desc: Use image node_id 9 for calling a global function with example usage: is_skipped_module(filename, opts, _excludes) and returns: False, True, True