code: def _as_undirected(graph, *args, **kwds):
      """Returns an undirected copy of this graph. Arguments are passed on
      to L{GraphBase.to_undirected()} that is invoked on the copy.
      """
      copy = graph.copy()
      copy.to_undirected(*args, **kwds)
      return copy
  
file_path: python-igraph/src/igraph/basic.py
imports: from igraph._igraph import GraphBase
  from igraph.seq import EdgeSeq
  from igraph.utils import deprecated
label_desc: Use image node_id 8 for calling a global function with example usage: _as_undirected(graph) and returns: copy