def parse(self, val: Any):
    if isinstance(val, (int, np.int)):
        return int(val)
    elif isinstance(val, (float, np.float)):
        return val
    elif isinstance(val, (np.ndarray, list)):
        return ' '.join(val)
    elif (val is None):
        return None
    if isinstance(val, str):
        return val
    else:
        val = val()
        if isinstance(val, (int, np.int)):
            return int(val)
        elif isinstance(val, (np.ndarray, list)):
            return ' '.join(val)
        else:
            return val
def parse(self, val: Any):
    if isinstance(val, (int, np.int)):
        return int(val)
    elif isinstance(val, (float, np.float)):
        return val
    elif isinstance(val, (np.ndarray, list)):
        return ' '.join(val)
    elif (val is None):
        return None
    if isinstance(val, str):
        return val
    else:
        val = val()
        if isinstance(val, (int, np.int)):
            return int(val)
        elif isinstance(val, (np.ndarray, list)):
            return ' '.join(val)
        else:
            return val