code: def test_analyzer(method: Callable, network_filter: str) -> None:
      """Workaround for move from unit-tests to pytest."""
      test_case = AnalyzerTestCase(
          method, network_filter=network_filter
      )
      test_case.run_test()
  
imports: from __future__ import annotations
  from typing import Callable
  import numpy
  import tensorflow
  import tensorflow.keras.backend
  from innvestigate.analyzer import Random
  from innvestigate.analyzer.base import AnalyzerBase
  from innvestigate.backend.types import Model
  from tests import networks
label_desc: Use image node_id 1 for calling a global function with example usage: test_analyzer(method, network_filter) without return types