(
        self, param, config_json, valid_check=False, module=None, cpn=None
    )
return param
if default_section not in config_json:
            return param
if default_section not in config_json:
            return param
if default_section not in config_json : return param
def parse_param_from_config(
        self, param, config_json, valid_check=False, module=None, cpn=None
    ):
        if config_json is None or type(config_json).__name__ != "dict":
            raise Exception(
                "config file is not a valid dict type, please have a check!"
            )

        # default_section = type(param).__name__
        if "ComponentParam" not in config_json:
            return param
        """
        if default_section not in config_json:
            return param
        """

        param = self.recursive_parse_param_from_config(
            param,
            config_json.get("ComponentParam"),
            param_parse_depth=0,
            valid_check=valid_check,
            name=f"{module}#{cpn}",
        )

        return param
def parse_param_from_config ( self , param , config_json , valid_check = False , module = None , cpn = None ) : if config_json is None or type ( config_json ) . __name__ != "dict" : raise Exception ( "config file is not a valid dict type, please have a check!" ) # default_section = type(param).__name__ if "ComponentParam" not in config_json : return param param = self . recursive_parse_param_from_config ( param , config_json . get ( "ComponentParam" ) , param_parse_depth = 0 , valid_check = valid_check , name = f"{module}#{cpn}" , ) return param