code: def __init__(self, logdir):
      self._reader = ProfilerReader(logdir)
  
imports: import json
  from .profiler_reader import ProfilerReader
  from visualdl.server.api import gen_result
  from visualdl.server.api import result
label_desc: Use image node_id 1 to create a new ProfilerApi object from inherited base classes: object with example: obj = ProfilerApi(logdir)