code: def test_RewriteRuleSubs():
      # Test both rhs substitution and callable rhs
      assert rule1.subs({"a": 1}) == (inc, 1)
      assert rule6.subs({"x": [1, 2, 3]}) == [1, 2, 3]
  
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 7 for calling a global function with example usage: test_RewriteRuleSubs() without return types