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 abc import ABC, abstractmethod, abstractproperty
  from collections.abc import Mapping
  from ..None import backend, transforms, utils
  from ..base import EID, NID
  from ..convert import heterograph
  from ..distributed import DistDataLoader
label_desc: Use image node_id 1 for calling a global function with example usage: _find_exclude_eids_with_reverse_id(g, eids, reverse_eid_map) and returns: exclude_eids