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: lightning-flash/tests/core/serve/test_dag/test_rewrite.py
imports: import pytest
  from flash.core.serve.dag.rewrite import VAR, RewriteRule, RuleSet, Traverser, args, head
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 9 for calling a global function with example usage: test_RewriteRuleSubs() without return types