code: def test_acr_registry_name(mock_default_azure_credential):
      """Test if repository name is parsed correctly."""
      config = {"uri": "https://test.azurecr.io/repository"}
      registry = AzureContainerRegistry.from_config(config)
      assert registry.registry_name == "test"
      # Same thing but without https
      config = {"uri": "test.azurecr.io/repository"}
      registry = AzureContainerRegistry.from_config(config)
      assert registry.registry_name == "test"
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_registry/test_acr.py
imports: from unittest.mock import MagicMock
  import pytest
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.registry.azure_container_registry import AzureContainerRegistry, ResourceNotFoundError
label_desc: Use image node_id 5 for calling a global function with example usage: test_acr_registry_name(mock_default_azure_credential) without return types