class_docstr: JSON encoder/decoder.
class_docstr_tok: ["JSON","encoder\/decoder","."]
docstr: JSON encoder.
docstr_tok: ["JSON","encoder","."]
code: def encode(x):
      """JSON encoder."""
      return json.dumps(x).encode()
  
file_path: airflow/airflow/providers/google/cloud/utils/mlengine_prediction_summary.py
imports: from __future__ import annotations
  import argparse
  import base64
  import json
  import logging
  import os
  import apache_beam
  import dill
  from apache_beam.coders.coders import Coder
label_desc: Use image node_id 1 for calling the JsonCoder obj's underlying member method code with example usage: obj.encode(x) and returns: json