code: def exclude_seed_edges(
      minibatch: MiniBatch,
      include_reverse_edges: bool = False,
      reverse_etypes_mapping: Dict[str, str] = None,
  ):
      """
      Exclude seed edges with or without their reverse edges from the sampled
      subgraphs in the minibatch.
  
      Parameters
      ----------
      minibatch : MiniBatch
          The minibatch.
      reverse_etypes_mapping : Dict[str, str] = None
          The mapping from the original edge types to their reverse edge types.
      """
      edges_to_exclude = minibatch.node_pairs
      if include_reverse_edges:
          edges_to_exclude = add_reverse_edges(
              minibatch.node_pairs, reverse_etypes_mapping
          )
      minibatch.sampled_subgraphs = [
          subgraph.exclude_edges(edges_to_exclude)
          for subgraph in minibatch.sampled_subgraphs
      ]
      return minibatch
  
imports: from typing import Dict, Tuple, Union
  import torch
  from .minibatch import MiniBatch
label_desc: Use image node_id 2 for calling a global function with example usage: exclude_seed_edges(minibatch, include_reverse_edges, reverse_etypes_mapping) and returns: minibatch