code: def PeriodicCallback(
      callback, callback_time, asynchronous=False, **kwargs
  ):  # pragma: no cover
      """For backward compatibility - please use Stream.from_periodic"""
      if kwargs:
          callback = lambda: callback(**kwargs)
      return Stream.from_periodic(
          callback, callback_time, asynchronous=asynchronous
      )
  
imports: import asyncio
  from glob import glob
  import queue
  import os
  import time
  from tornado import gen
  import weakref
  from .core import Stream, convert_interval, RefCounter, sync
label_desc: Use image node_id 2 for calling a global function with example usage: PeriodicCallback(callback, callback_time, asynchronous) and returns: Stream