(param)
Examples:

        1. "metrics": "Accuracy"
        2. "metrics": ["Accuracy"]
Examples:
Examples :
def _parse_metrics(param):
    """
    Examples:

        1. "metrics": "Accuracy"
        2. "metrics": ["Accuracy"]
    """
    if not param:
        return []
    elif isinstance(param, str):
        return [param]
    elif isinstance(param, list):
        return param
    else:
        raise ValueError(f"invalid metrics type: {type(param)}")
def _parse_metrics ( param ) : if not param : return [ ] elif isinstance ( param , str ) : return [ param ] elif isinstance ( param , list ) : return param else : raise ValueError ( f"invalid metrics type: {type(param)}" )