code: def test_training(distilbert_squad, caplog=None):
      if caplog:
          caplog.set_level(logging.CRITICAL)
  
      model, processor = distilbert_squad
      assert type(model) == AdaptiveModel
      assert type(processor) == SquadProcessor
  
imports: import logging
  from pathlib import Path
  import pytest
  from math import isclose
  import numpy
  from farm.data_handler.processor import SquadProcessor
  from farm.modeling.adaptive_model import AdaptiveModel
  from farm.infer import QAInferencer
  from farm.data_handler.inputs import QAInput, Question
label_desc: Use image node_id 1 for calling a global function with example usage: test_training(distilbert_squad, caplog) without return types