code: def _fetch_networks(
      module_name: str, module, network_filter: str
  ) -> list[tuple[str, tuple[types.ModuleType, str]]]:
      """Fetch all networks in the given module that match the network_filter string."""
      networks = [
          (f"{module_name}.{name}", (module, name))
          for name in module.__all__
          if any(
              (
                  fnmatch.fnmatch(name, one_filter)
                  or fnmatch.fnmatch(
                      f"{module_name}.{name}", one_filter
                  )
              )
              for one_filter in network_filter.split(":")
          )
      ]
      return [n for n in sorted(networks)]
  
file_path: innvestigate/tests/networks/__init__.py
imports: from __future__ import annotations
  import fnmatch
  import types
  from typing import Iterator
  import tensorflow.keras.backend
  from innvestigate.backend.types import Model
  from tests.networks import imagenet, mnist, trivia
label_desc: Use image node_id 2 for calling a global function with example usage: _fetch_networks(module_name, module, network_filter) and returns: unknown