code: def _parse_query_json(text):
      """Parses query json object."""
      data = json.loads(text)
      return {
          "query_id": data["_id"],
          "query": data["text"],
          "query_metadata": json.dumps(data["metadata"]),
      }
  
imports: from __future__ import annotations
  import functools
  import json
  import os
  from typing import Mapping
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_query_json(text) and returns: dict