code: def _on_timer(self, time):
      if self.bars:
          bar = self.bars[-1]
          if isNan(bar.close) and len(self.bars) > 1:
              bar.open = bar.high = bar.low = bar.close = self.bars[
                  -2
              ].close
          self.bars.updateEvent.emit(self.bars, True)
          self.emit(bar)
      self.bars.append(Bar(time))
  
imports: from dataclasses import dataclass, field
  from datetime import datetime
  from typing import ClassVar, List, Optional, Union
  from eventkit import Event, Op
  from ib_insync.contract import Contract
  from ib_insync.objects import DOMLevel, Dividends, FundamentalRatios, MktDepthData, OptionComputation, TickByTickAllLast, TickByTickBidAsk, TickByTickMidPoint, TickData
  from ib_insync.util import dataclassRepr, isNan
label_desc: Use image node_id 3 for calling the TimeBars obj's underlying member method code with example usage: obj._on_timer(time) without return types