code: def JsonDumpAndFlush(data, fp):
      """Write the dictionary `data` to a JSON file `fp` (and flush).
  
      Args:
        data: in a dictionary that is JSON serializable.
        fp: File-like object
      """
      json.dump(data, fp)
      fp.flush()
  
file_path: tensorflow/tensorflow/lite/schema/upgrade_schema_test.py
imports: import json
  import tempfile
  from tensorflow.lite.schema import upgrade_schema
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: JsonDumpAndFlush(data, fp) without return types