code: def _get_module_wrapper(
      module: str,
      output_dir: str,
      output_package: str,
      api_version: int,
      symbols_by_module: Mapping[str, set[_Entrypoint]],
      use_lazy_loading: bool,
  ) -> str:
      """Returns the module wrapper for the given module."""
      if api_version != 1 and not use_lazy_loading:
          return ""
      deprecated = "False"
      has_lite = "False"
      public_apis_name = "None"
      if api_version == 1 and not output_dir.strip("/").endswith(
          "compat/v1"
      ):
          deprecated = "True"
      if "lite" in symbols_by_module and use_lazy_loading:
          has_lite = "True"
      if use_lazy_loading:
          public_apis_name = "_PUBLIC_APIS"
      return _DEPRECATION_FOOTER % (
          module.removeprefix(output_package).strip("."),
          public_apis_name,
          deprecated,
          has_lite,
      )
  
imports: import collections
  from collections.abc import Mapping, Sequence, Set
  import dataclasses
  import os
  from typing import Optional
  from absl import app
  from absl import flags
  from tensorflow.python.tools.api.generator2.shared import exported_api
label_desc: Use image node_id 9 for calling a global function with example usage: _get_module_wrapper(module, output_dir, output_package, api_version, symbols_by_module, use_lazy_loading) and returns: unknown, str