code: def _ecr_login(ecr_client):
      """Get a login credentials for an ecr client."""
      login = ecr_client.get_authorization_token()
      b64token = login["authorizationData"][0][
          "authorizationToken"
      ].encode("utf-8")
      username, password = (
          base64.b64decode(b64token).decode("utf-8").split(":")
      )
      return username, password
  
imports: from __future__ import absolute_import
  import base64
  import os
  import subprocess
  import shutil
  import pytest
  import docker
  import re
  import sys
  from docker.errors import BuildError
  from sagemaker.utils import sagemaker_timestamp, _tmpdir, sts_regional_endpoint
label_desc: Use image node_id 13 for calling a global function with example usage: _ecr_login(ecr_client) and returns: username,  password