code: def registry(url, data, interval):
      def worker():
          while True:
              try:
                  requests.post(
                      url,
                      json=data,
                      headers={"Content-Type": "application/json"},
                  )
              except Exception as e:
                  logger.error(
                      "handler_register: unable to register the service - %s",
                      e,
                  )
              time.sleep(interval)
  
      _th_worker = Thread(target=worker)
      _th_worker.start()
      logger.info(
          "handler_register: registering service. url - %s, data - %s, interval - %s",
          url,
          data,
          interval,
      )
  
imports: import time
  import importlib
  from threading import Thread
  import requests
  from mindsdb.utilities import log
label_desc: Use image node_id 3 for calling a global function with example usage: registry(url, data, interval) without return types