Get schema class by data type.

    :param type data_type: data type from where get schema class.
    :param bool besteffort: if True and data_type not registered, parse all
        registered data_types and stop when once data_type is a subclass of
        input data_type.
    :return: sub class of Schema.
    :rtype: type

def getbydatatype(data_type, besteffort=True):
    """Get schema class by data type.

    :param type data_type: data type from where get schema class.
    :param bool besteffort: if True and data_type not registered, parse all
        registered data_types and stop when once data_type is a subclass of
        input data_type.
    :return: sub class of Schema.
    :rtype: type
    """
    return _REGISTRY.getbydatatype(data_type=data_type, besteffort=besteffort)