code: def test_fast_serialize(method, kwargs):
      tf.keras.backend.clear_session()
  
      def analyzer(model):
          return method(model, **kwargs)
  
      dryrun.test_serialize_analyzer(analyzer, "trivia.*:mnist.log_reg")
  
file_path: innvestigate/tests/analyzer/test_relevance_based.py
imports: import pytest
  import tensorflow
  from innvestigate.analyzer import LRPZ, BaselineLRPZ, LRPAlpha1Beta0, LRPAlpha1Beta0IgnoreBias, LRPAlpha2Beta1, LRPAlpha2Beta1IgnoreBias, LRPEpsilon, LRPFlat, LRPSequentialPresetA, LRPSequentialPresetAFlat, LRPSequentialPresetB, LRPSequentialPresetBFlat, LRPWSquare, LRPZPlus, LRPZPlusFast
  from tests import dryrun
label_desc: Use image node_id 2 for calling a global function with example usage: test_fast_serialize(method, kwargs) and returns: method