code: def _compare(self, other, method):
      if not isinstance(other, _BaseVersion):
          return NotImplemented
  
      return method(self._key, other._key)
  
imports: from __future__ import absolute_import, division, print_function
  from copy import deepcopy
  from attr import attrs, attrib
  import re
  import six
label_desc: Use image node_id 9 for calling the _BaseVersion obj's underlying member method code with example usage: obj._compare(other, method) and returns: method, NotImplemented