code: def has_child_module(
      rootpath: str, excludes: Sequence[re.Pattern[str]], opts: Any
  ) -> bool:
      """Check the given directory contains child module/s (at least one)."""
      return any(
          files
          for _root, _subs, files in walk(rootpath, excludes, opts)
      )
  
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 11 for calling a global function with example usage: has_child_module(rootpath, excludes, opts) and returns: any