def METHOD_NAME(data):
    """
    Strip nested lists and dictionaries from the provided object to reduce its size.
    :param data:                    The object to strip.
    :return:                        The input data stripped of its nested lists and dictionaries.
    """
    if not isinstance(data, dict):
        return data
    result = {}
    for k, v in data.items():
        if isinstance(v, dict):
            result[k] = {'type': 'dict', 'keys': list(v.keys())}
        elif isinstance(v, list):
            result[k] = {'type': 'list', 'length': len(v)}
    return result