def METHOD_NAME(self):
    """Test the ``_detect_provider_name`` method.
    Test that the function returns an expected provider name from the ``faker.Faker`` instance.
    If this is from the ``BaseProvider`` it should also return that name.
    Input:
        - Faker function name.
    Output:
        - The faker provider name for that function.
    """
    # Run / Assert
    email_provider = _detect_provider_name('email')
    lexify_provider = _detect_provider_name('lexify')
    state_provider = _detect_provider_name('state')
    assert email_provider == 'internet'
    assert lexify_provider == 'BaseProvider'
    assert state_provider == 'address.en_US'