code: def _package_entries(
      workdir: str,
      user_id: int,
      user_group: int,
      package: u.Package,
      caliban_config: Optional[Dict[str, Any]] = None,
  ) -> str:
      """Returns the Dockerfile entries required to:
  
      - copy a directory of code into a docker container
      - inject an entrypoint that executes a python module inside that directory.
  
      Python code runs as modules vs scripts so that we can enforce import hygiene
      between files inside a project.
  
      """
      caliban_config = caliban_config or {}
  
      arg = package.main_module or package.script_path
      package_path = package.package_path
  
      sql_proxy_code = _cloud_sql_proxy_entry(
          user_id, user_group, caliban_config=caliban_config
      )
  
      copy_code = copy_command(
          user_id,
          user_group,
          package_path,
          f"{workdir}/{package_path}",
          comment="Copy project code into the docker container.",
      )
  
      # This needs to use json so that quotes print as double quotes, not single
      # quotes.
      executable_s = json.dumps(package.executable + [arg])
      entrypoint_code = _generate_entrypoint(executable_s)
  
      return f"""
    {sql_proxy_code}
  
    {copy_code}
  
    {entrypoint_code}
  """
  
imports: from __future__ import absolute_import, division, print_function
  import json
  import os
  import subprocess
  import tempfile
  from enum import Enum
  from pathlib import Path
  from typing import Any, Dict, List, NamedTuple, NewType, Optional, Union
  from absl import logging
  from blessings import Terminal
  import caliban.config
  import caliban.util
  import caliban.util.fs
  import caliban.util.metrics
label_desc: Use image node_id 15 for calling a global function with example usage: _package_entries(workdir, user_id, user_group, package, caliban_config) and returns: str, sql_proxy_code, str, copy_code, str, entrypoint_code, str