code: def is_module(layer) -> bool:
      """
      Is there a tf.Module in the network?
      """
      if isinstance(layer, klayers.Layer):
          return False
      return isinstance(layer, Module)
  
imports: from __future__ import annotations
  import tensorflow.keras.layers
  from tensorflow import Module, keras
  import innvestigate.backend
  from innvestigate.backend.types import Layer, Model
label_desc: Use image node_id 6 for calling a global function with example usage: is_module(layer) and returns: isinstance, False