code: def _top_level(net, term):
      return net._rewrite(term)
  
imports: from __future__ import annotations
  from collections import deque
  from dask.core import istask, subs
label_desc: Use image node_id 3 for calling a global function with example usage: _top_level(net, term) and returns: net