code: def test_RuleSet():
      net = (
          {
              add: (
                  {
                      VAR: ({VAR: ({}, [1]), 1: ({}, [0])}, []),
                      inc: (
                          {VAR: ({inc: ({VAR: ({}, [2, 3])}, [])}, [])},
                          [],
                      ),
                  },
                  [],
              ),
              list: ({VAR: ({}, [5])}, []),
              sum: (
                  {
                      list: (
                          {VAR: ({VAR: ({VAR: ({}, [4])}, [])}, [])},
                          [],
                      )
                  },
                  [],
              ),
          },
          [],
      )
      assert rs._net == net
      assert rs.rules == rules
  
file_path: dask/dask/tests/test_rewrite.py
imports: from __future__ import annotations
  from dask.rewrite import VAR, RewriteRule, RuleSet, Traverser, args, head
  from dask.utils_test import add, inc
label_desc: Use image node_id 8 for calling a global function with example usage: test_RuleSet() without return types