code: def test_build_deploy_for_djl_local_container(
      self,
      mock_get_nb_instance,
      mock_get_ram_usage_mb,
      mock_prepare_for_djl_serving,
      mock_set_serving_properties,
      mock_auto_detect_engine,
      mock_is_jumpstart_model,
      mock_telemetry,
  ):
      builder = ModelBuilder(
          model=mock_model_id,
          schema_builder=mock_schema_builder,
          mode=Mode.LOCAL_CONTAINER,
          model_server=ModelServer.DJL_SERVING,
      )
  
      builder._prepare_for_mode = MagicMock()
      builder._prepare_for_mode.side_effect = None
  
      model = builder.build()
      builder.serve_settings.telemetry_opt_out = True
  
      assert isinstance(model, HuggingFaceAccelerateModel)
      assert (
          model.generate_serving_properties()
          == mock_expected_huggingfaceaccelerate_serving_properties
      )
      assert builder._default_tensor_parallel_degree == 4
      assert builder._default_data_type == "fp16"
      assert builder._default_max_tokens == 256
      assert builder._default_max_new_tokens == 256
      assert (
          builder.schema_builder.sample_input["parameters"][
              "max_new_tokens"
          ]
          == 256
      )
      assert builder.nb_instance_type == "ml.g5.24xlarge"
      assert "deepspeed" in builder.image_uri
  
      builder.modes[str(Mode.LOCAL_CONTAINER)] = MagicMock()
      predictor = model.deploy(model_data_download_timeout=1800)
  
      assert builder.env_vars["MODEL_LOADING_TIMEOUT"] == "1800"
      assert isinstance(predictor, DjlLocalModePredictor)
  
      builder._original_deploy = MagicMock()
      builder._prepare_for_mode.return_value = (None, {})
      predictor = model.deploy(
          mode=Mode.SAGEMAKER_ENDPOINT, role="mock_role_arn"
      )
      assert "TRANSFORMERS_OFFLINE" in model.env
  
      with self.assertRaises(ValueError) as _:
          model.deploy(mode=Mode.IN_PROCESS)
  
imports: from __future__ import absolute_import
  from unittest.mock import MagicMock, patch
  import unittest
  from sagemaker.serve.builder.model_builder import ModelBuilder
  from sagemaker.serve.utils.types import _DjlEngine
  from sagemaker.serve.mode.function_pointers import Mode
  from sagemaker.serve import ModelServer
  from sagemaker.djl_inference.model import DeepSpeedModel, FasterTransformerModel, HuggingFaceAccelerateModel
  from sagemaker.serve.utils.exceptions import LocalDeepPingException, LocalModelLoadException, LocalModelOutOfMemoryException, LocalModelInvocationException
  from sagemaker.serve.utils.predictors import DjlLocalModePredictor
label_desc: Use image node_id 1 for calling the TestDjlBuilder obj's underlying member method code with example usage: obj.test_build_deploy_for_djl_local_container(mock_get_nb_instance, mock_get_ram_usage_mb, mock_prepare_for_djl_serving, mock_set_serving_properties, mock_auto_detect_engine, mock_is_jumpstart_model, mock_telemetry) without return types