code: def reverse(self, copy: bool = True) -> DiGraph:
      return self._copy(not copy, self.__class__, reverse=True)
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/classes/digraph.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import cupy
  import networkx
  import nx_cugraph
  from .graph import Graph
label_desc: Use image node_id 4 for calling the DiGraph obj's underlying member method code with example usage: obj.reverse(copy) and returns: self