code: def _find_exclude_eids_with_reverse_id(g, eids, reverse_eid_map):
      if isinstance(eids, Mapping):
          eids = {g.to_canonical_etype(k): v for k, v in eids.items()}
          exclude_eids = {
              k: F.cat([v, F.gather_row(reverse_eid_map[k], v)], 0)
              for k, v in eids.items()
          }
      else:
          exclude_eids = F.cat(
              [eids, F.gather_row(reverse_eid_map, eids)], 0
          )
      return exclude_eids
  
imports: import inspect
  from collections.abc import Mapping
  from ..None import backend
  from ..base import EID, NID
  from ..convert import heterograph
  from ..frame import LazyFeature
  from ..transforms import compact_graphs
  from ..utils import context_of, recursive_apply
label_desc: Use image node_id 6 for calling a global function with example usage: _find_exclude_eids_with_reverse_id(g, eids, reverse_eid_map) and returns: exclude_eids