code: def _check_methods(C, *methods):
      try:
          mro = C.__mro__
      except AttributeError:
          mro = tuple(_classic_mro(C, []))
  
      for method in methods:
          for B in mro:
              if method in B.__dict__:
                  if B.__dict__[method] is None:
                      return NotImplemented
                  break
          else:
              return NotImplemented
      return True
  
imports: import abc
  import sys
  import warnings
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 2 for calling a global function with example usage: _check_methods(C) and returns: True, NotImplemented, NotImplemented