code: def get_json(self):
      return json.dumps(
          {
              name: package.get_record()
              for name, package in self.packages.items()
          }
      )
  
file_path: snakemake/snakemake/report/data/packages.py
imports: import json
  from snakemake.exceptions import WorkflowError
  from snakemake.report.data.common import get_resource_as_string
  import snakemake
label_desc: Use image node_id 3 for calling the Packages obj's underlying member method code with example usage: obj.get_json() and returns: json