def METHOD_NAME() -> str:
    prefix = "T"
    new_public_primary_key = generate_public_primary_key(prefix)
    failure_counter = 0
    while Team.objects.filter(public_primary_key=new_public_primary_key).exists():
        new_public_primary_key = increase_public_primary_key_length(
            failure_counter=failure_counter, prefix=prefix, model_name="Team"
        )
        failure_counter += 1
    return new_public_primary_key