code: def __init__(self, infix, prefix, const):
      assert isinstance(infix, dict)
      assert isinstance(prefix, dict)
      assert isinstance(const, dict)
      self.infix = {INFIX_TO_NODE[k]: v for k, v in infix.items()}
      self.prefix = {PREFIX_TO_NODE[k]: v for k, v in prefix.items()}
      self.const = const
  
file_path: funsor/funsor/syntax.py
imports: import ast
  import functools
  import inspect
  from .None import ops
label_desc: Use image node_id 1 to create a new OpTransformer object from inherited base classes: ast with example: obj = OpTransformer(infix, prefix, const)