code: def metadata_json_output(metadata):
      json_result = dict()
      json_result["transcripts"] = [
          {
              "confidence": transcript.confidence,
              "words": words_from_candidate_transcript(transcript),
          }
          for transcript in metadata.transcripts
      ]
      return json.dumps(json_result, indent=2)
  
file_path: DeepSpeech/native_client/python/client.py
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import numpy
  import shlex
  import subprocess
  import sys
  import wave
  import json
  from deepspeech import Model, version
  from timeit import default_timer
label_desc: Use image node_id 4 for calling a global function with example usage: metadata_json_output(metadata) and returns: json