code: def scheduler():
      from mindsdb.interfaces.jobs.scheduler import Scheduler
  
      scheduler_ = Scheduler({})
  
      yield scheduler_
  
      scheduler_.stop_thread()
  
imports: from unittest.mock import patch
  import datetime
  import time
  import pytest
  import pandas
  from mindsdb_sql import parse_sql
  from .executor_test_base import BaseExecutorDummyML
label_desc: Use image node_id 1 for calling a global function with example usage: scheduler() without return types