def METHOD_NAME(self) -> None:
    """Test _set_ecr_repo from Dict."""
    args = {
        "repo_name": "foo",
        "account_id": "123",
        "registry_alias": "bar",
        "aws_region": "us-west-2",
    }
    obj = ImageRemoveArgs.parse_obj({"ecr_repo": args})
    assert obj.ecr_repo
    assert obj.ecr_repo.name == args["repo_name"]
    assert obj.ecr_repo.registry.account_id == args["account_id"]
    assert obj.ecr_repo.registry.alias == args["registry_alias"]
    assert obj.ecr_repo.registry.region == args["aws_region"]