def METHOD_NAME(fh):
    format_ = fh.get('format')
    version = fh.get('version')
    if format is None or version is None:
        return None
    else:
        return {'format': format_[0], 'version': version[0]}