code: def registry_auth(self, username: str, password: str):
      resp = requests.post(
          self._url("/api/registry_auth"),
          json=RegistryAuthBody(
              username=username, password=password
          ).dict(),
      )
      resp.raise_for_status()
  
imports: import asyncio
  import weakref
  from typing import BinaryIO, Dict, Optional, Union
  import aiohttp
  import requests
  import requests.exceptions
  from dstack._internal.core.models.repos.remote import RemoteRepoCreds
  from dstack._internal.core.models.runs import JobSpec, RunSpec
  from dstack._internal.server.schemas.runner import HealthcheckResponse, PullResponse, RegistryAuthBody, SubmitBody
label_desc: Use image node_id 3 for calling the ShimClient obj's underlying member method code with example usage: obj.registry_auth(username, password) without return types