class_docstr: Plugin to help record which modules are imported on the scheduler
class_docstr_tok: ["Plugin","to","help","record","which","modules","are","imported","on","the","scheduler"]
code: def __init__(self, pattern):
      self.pattern = pattern
  
imports: from __future__ import annotations
  import os
  import pytest
  import sys
  from operator import getitem
  from distributed import Client, SchedulerPlugin
  from distributed.utils_test import cluster, loop
  from dask.highlevelgraph import HighLevelGraph
  from dask.layers import ArrayChunkShapeDep, ArraySliceDep, fractional_slice
label_desc: Use image node_id 1 to create a new SchedulerImportCheck object from inherited base classes: SchedulerPlugin with example: obj = SchedulerImportCheck(pattern)