code: def add_ops(op_classes):
      """Decorator to add default implementation of ops."""
  
      def f(cls):
          for op_attr_name, op_class in compat.iteritems(op_classes):
              ops = getattr(cls, "{name}_ops".format(name=op_attr_name))
              ops_map = getattr(
                  cls, "{name}_op_nodes_map".format(name=op_attr_name)
              )
              for op in ops:
                  op_node = ops_map[op]
                  if op_node is not None:
                      made_op = _op_maker(op_class, op)
                      setattr(
                          cls,
                          "visit_{node}".format(node=op_node),
                          made_op,
                      )
          return cls
  
      return f
  
imports: import ast
  from functools import partial
  import tokenize
  import numpy
  from pandas.compat import StringIO, lmap, reduce, string_types, zip
  import pandas
  from pandas import compat
  from pandas.core import common
  from pandas.core.base import StringMixin
  from pandas.core.computation.ops import _LOCAL_TAG, BinOp, Constant, Div, FuncNode, Op, Term, UnaryOp, UndefinedVariableError, _arith_ops_syms, _bool_ops_syms, _cmp_ops_syms, _mathops, _reductions, _unary_ops_syms, is_term
  from pandas.core.computation.scope import Scope
  import pandas.io.formats.printing
label_desc: Use image node_id 13 for calling a global function with example usage: add_ops(op_classes) and returns: f, cls