code: def prune_self_edges(self):
      return self.edges(
          self._edges[
              self._edges[self._source]
              != self._edges[self._destination]
          ]
      )
  
imports: import logging, numpy, pandas
  from typing import Any, List, Union, TYPE_CHECKING
  from typing_extensions import Literal
  from graphistry.Engine import Engine, EngineAbstract
  from graphistry.Plottable import Plottable
  from graphistry.util import setup_logger
  from .chain import chain
  from .collapse import collapse_by
  from .hop import hop
  from .filter_by_dict import filter_edges_by_dict, filter_nodes_by_dict
label_desc: Use image node_id 9 for calling the ComputeMixin obj's underlying member method code with example usage: obj.prune_self_edges() and returns: self