def _escape_key(string):
    """
    The '_type' and '_meta' keys are reserved.
    Prefix with an additional '_' if they occur.
    """
    if string.startswith('_') and string.lstrip('_') in ('type', 'meta'):
        return '_' + string
    return string
dataset/ETHPy150Open core-api/python-client/coreapi/codecs/corejson.py/_escape_key/original