code: def log_json(self, data, filename, mode="w"):
      with open(filename, mode) as outfile:
          outfile.write(json.dumps(data, indent=4, ensure_ascii=False))
  
imports: import json
  import os
  from .None import constants
label_desc: Use image node_id 2 for calling the Logger obj's underlying member method code with example usage: obj.log_json(data, filename, mode) without return types