code: def __init__(self, path, reset=True):
      self._path = path
      if reset:
          try:
              os.remove(self._path)
          except OSError:
              pass
      super(JSONLogger, self).__init__()
  
imports: from __future__ import print_function
  import os
  import json
  import warnings
  from pathlib import Path
  from .observer import _Tracker
  from .event import Events
  from .util import Colours
label_desc: Use image node_id 1 to create a new JSONLogger object from inherited base classes: _Tracker with example: obj = JSONLogger(path, reset)