code: def test_precommit__BasicGraphReversal():
      tf.keras.backend.clear_session()
  
      def method1(model):
          return BaselineGradient(model)
  
      def method2(model):
          return Gradient(model)
  
      dryrun.test_equal_analyzer(method1, method2, "mnist.*")
  
file_path: innvestigate/tests/analyzer/test_base.py
imports: from __future__ import annotations
  import pytest
  import tensorflow
  from innvestigate.analyzer import BaselineGradient, Gradient, Input, Random
  from tests import dryrun
label_desc: Use image node_id 5 for calling a global function with example usage: test_precommit__BasicGraphReversal() and returns: BaselineGradient, Gradient