code: def _resource_entries(
      uid: int,
      gid: int,
      resource_files: Optional[List[str]] = None,
      resource_dir: str = RESOURCE_DIR,
  ) -> str:
      """Returns Dockerfile entries necessary to copy miscellaneous resource files
      into container. Usually these files are staged in the working directory, so
      that Docker's build context can access them.
  
      Args:
      uid: user id in container for files
      gid: user group id in container for files
      resource_files: list of files to copy
      resource_dir: destination for resource files
  
  
      Returns:
      a string to append to a Dockerfile containing COPY commands that will copy
      those resources into a built container.
  
      """
      if resource_files is None:
          return ""
  
      def copy(path):
          return copy_command(uid, gid, path, resource_dir)
  
      return "\n\n".join(map(copy, resource_files)) + "\n"
  
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 23 for calling a global function with example usage: _resource_entries(uid, gid, resource_files, resource_dir) and returns: unknown, str, copy_command