code: def bin_compare_doc(
      desc, op_name=None, equiv=None, series_example=None
  ):
      def wrapper(fun):
          nonlocal op_name
          op_name = op_name or fun.__name__
          fun.__frame_doc__ = _flex_comp_doc_FRAME.format(
              desc=desc, op_name=op_name, equiv=equiv
          )
          fun.__series_doc__ = _flex_comp_doc_SERIES.format(
              desc=desc, op_name=op_name, equiv=equiv
          )
          if series_example is not None:  # pragma: no branch
              fun.__series_doc__ += "\n" + series_example.strip()
          return fun
  
      return wrapper
  
label_desc: Use image node_id 2 for calling a global function with example usage: bin_compare_doc(desc, op_name, equiv, series_example) and returns: wrapper, fun