code: def _has_serving_properties_file(code_dir: Path) -> bool:
      """Check for existing serving properties in the directory"""
      return code_dir.joinpath(_SERVING_PROPERTIES_FILE).is_file()
  
imports: from __future__ import absolute_import
  import shutil
  import json
  import tarfile
  import logging
  from typing import List
  from pathlib import Path
  from sagemaker.utils import _tmpdir
  from sagemaker.s3 import S3Downloader
  from sagemaker.djl_inference import DJLModel
  from sagemaker.djl_inference.model import _read_existing_serving_properties
  from sagemaker.serve.utils.local_hardware import _check_disk_space, _check_docker_disk_usage
label_desc: Use image node_id 1 for calling a global function with example usage: _has_serving_properties_file(code_dir) and returns: code_dir