def METHOD_NAME(res):
    try:
        if res['kind'] != "ConfigMap":
            return res
        data = res['data']
        # some times keys are yamls...
        # so parse them
        for k in data:
            try:
                op = yaml.safe_load_all(data[k])
                data[k] = list(op)
            except yaml.YAMLError as ex:
                print(ex)
        return res
    except KeyError as ke:
        if 'kind' in str(ke) or 'data' in str(ke):
            return res
        raise