import re


def convert_to_snake_case(name: str) -> str:
    """
    Convert a given string to snake_case.

    Converts a given string to snake_case from camel case or kebab case
    >>> normalize_field_name('SomeCamelCase')
    'some_camel_case'
    >>> normalize_field_name('sample-kebab-case')
    'sample_kebab_case'
    """
    return re.sub(r"(?<!^)(?=[A-Z])", "_", name).replace("-", "_").lower()