def METHOD_NAME(data_type):
    """
    :param ~data_specification.enums.DataType data_type:
    :return: The generator parameter type code for the given data type.
    :rtype: int
    :raises TypeError: If an unsupported data type is given
    """
    if data_type in _GENERATOR_TYPES:
        return _GENERATOR_TYPES[data_type]
    raise TypeError(f"Ungeneratable type {data_type}")