class_docstr: Class Duration in development.
class_docstr_tok: ["Class","Duration","in","development","."]
docstr: Check that *self* and *rhs* share frames; compare them using *op*.
docstr_tok: ["Check","that","*","self","*","and","*","rhs","*","share","frames",";","compare","them","using","*","op","*","."]
code: def _cmp(self, op, rhs):
      """
      Check that *self* and *rhs* share frames; compare them using *op*.
      """
      self.checkSameFrame(rhs, "compare")
      return op(self._seconds, rhs._seconds)
  
file_path: catboost/contrib/python/matplotlib/py3/matplotlib/testing/jpl_units/Duration.py
imports: import functools
  import operator
  from matplotlib import _api
label_desc: Use image node_id 7 for calling the Duration obj's underlying member method code with example usage: obj._cmp(op, rhs) and returns: op