class_docstr: Helper for accessing Azure Container Registry resources.
docstr: Initialize an AzureContainerRegistry.
docstr_tok: ["Initialize","an","AzureContainerRegistry","."]
code: def __init__(
      self,
      uri: Optional[str] = None,
      registry_name: Optional[str] = None,
      repo_name: Optional[str] = None,
  ):
      """Initialize an AzureContainerRegistry."""
      if uri is not None:
          self.uri = uri
          if any(x is not None for x in (registry_name, repo_name)):
              raise LaunchError(
                  "Please specify either a registry name and repo name or a registry URI."
              )
          if self.uri.startswith("https://"):
              self.uri = self.uri[len("https://") :]
          match = AZURE_CONTAINER_REGISTRY_URI_REGEX.match(self.uri)
          if match is None:
              raise LaunchError(
                  f"Unable to parse Azure Container Registry URI: {self.uri}"
              )
          self.registry_name = match.group(1)
          self.repo_name = match.group(2)
      else:
          if any(x is None for x in (registry_name, repo_name)):
              raise LaunchError(
                  "Please specify both a registry name and repo name or a registry URI."
              )
          self.registry_name = registry_name
          self.repo_name = repo_name
          self.uri = f"{self.registry_name}.azurecr.io/{self.repo_name}"
  
file_path: wandb/wandb/sdk/launch/registry/azure_container_registry.py
imports: import re
  from typing import TYPE_CHECKING, Optional, Tuple
  from wandb.sdk.launch.environment.azure_environment import AzureEnvironment
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.utils import AZURE_CONTAINER_REGISTRY_URI_REGEX
  from wandb.util import get_module
  from .abstract import AbstractRegistry
label_desc: Use image node_id 1 to create a new AzureContainerRegistry object from inherited base classes: AbstractRegistry with example: obj = AzureContainerRegistry(uri, registry_name, repo_name)