(model_contents: dict,
                                 module_name: str)
return framework_name
Returns the name of a supported ML framework based on the
    original FATE model module name and model contents.

    :param model_contents: the model content of the FATE model
    :param module_name:  The module name, typically as HomoXXXX.
    :return: the corresponding framework name that this model can be converted to.
Returns the name of a supported ML framework based on the
    original FATE model module name and model contents.
Returns the name of a supported ML framework based on the original FATE model module name and model contents .
def get_default_target_framework(model_contents: dict,
                                 module_name: str):
    """
    Returns the name of a supported ML framework based on the
    original FATE model module name and model contents.

    :param model_contents: the model content of the FATE model
    :param module_name:  The module name, typically as HomoXXXX.
    :return: the corresponding framework name that this model can be converted to.
    """
    framework_name = None
    if module_name == "HomoLR":
        framework_name = "sklearn"
    elif module_name == 'HomoNN':
        if model_contents['HomoNNModelMeta'].params.config_type == "pytorch":
            framework_name = "pytorch"
        else:
            framework_name = "tf_keras"
    elif module_name.lower() == 'homosecureboost':
        framework_name = 'lightgbm'
    else:
        LOGGER.debug(f"Module {module_name} is not a supported homogeneous model")
    return framework_name
def get_default_target_framework ( model_contents : dict , module_name : str ) : framework_name = None if module_name == "HomoLR" : framework_name = "sklearn" elif module_name == 'HomoNN' : if model_contents [ 'HomoNNModelMeta' ] . params . config_type == "pytorch" : framework_name = "pytorch" else : framework_name = "tf_keras" elif module_name . lower ( ) == 'homosecureboost' : framework_name = 'lightgbm' else : LOGGER . debug ( f"Module {module_name} is not a supported homogeneous model" ) return framework_name