code: def check_replace_scheduler_factory(expected_output):
      def _check(d):
          return d == expected_output
  
      return _check
  
file_path: BentoML/tests/integration/frameworks/models/diffusers.py
imports: from __future__ import annotations
  import diffusers
  import numpy
  import bentoml
  from .None import FrameworkTestModel
  from .None import FrameworkTestModelConfiguration
  from .None import FrameworkTestModelInput
label_desc: Use image node_id 2 for calling a global function with example usage: check_replace_scheduler_factory(expected_output) and returns: _check, unknown