class_docstr: A class that holds methods to deploy model to a container in local environment
class_docstr_tok: ["A","class","that","holds","methods","to","deploy","model","to","a","container","in","local","environment"]
docstr: Placeholder docstring
docstr_tok: ["Placeholder","docstring"]
code: def _pull_image(self, image: str):
      """Placeholder docstring"""
      try:
          encoded_token = (
              self.ecr.get_authorization_token()
              .get("authorizationData")[0]
              .get("authorizationToken")
          )
          decoded_token = base64.b64decode(encoded_token).decode(
              "utf-8"
          )
          username, password = decoded_token.split(":")
          ecr_uri = image.split("/")[0]
          login_command = [
              "docker",
              "login",
              "-u",
              username,
              "-p",
              password,
              ecr_uri,
          ]
          subprocess.run(login_command, check=True, capture_output=True)
      except subprocess.CalledProcessError as e:
          logger.warning("Unable to login to ecr: %s", e)
  
      self.client = docker.from_env()
      try:
          logger.info("Pulling image %s from repository...", image)
          self.client.images.pull(image)
      except docker.errors.NotFound as e:
          raise ValueError("Could not find remote image to pull") from e
  
imports: from __future__ import absolute_import
  from pathlib import Path
  import logging
  from datetime import datetime, timedelta
  from typing import Dict, Type
  import base64
  import time
  import subprocess
  import docker
  from sagemaker.base_predictor import PredictorBase
  from sagemaker.serve.spec.inference_spec import InferenceSpec
  from sagemaker.serve.builder.schema_builder import SchemaBuilder
  from sagemaker.serve.utils.logging_agent import pull_logs
  from sagemaker.serve.utils.types import ModelServer
  from sagemaker.serve.utils.exceptions import LocalDeepPingException
  from sagemaker.serve.model_server.torchserve.server import LocalTorchServe
  from sagemaker.serve.model_server.djl_serving.server import LocalDJLServing
  from sagemaker.serve.model_server.triton.server import LocalTritonServer
  from sagemaker.serve.model_server.tgi.server import LocalTgiServing
  from sagemaker.session import Session
label_desc: Use image node_id 6 for calling the LocalContainerMode obj's underlying member method code with example usage: obj._pull_image(image) without return types