code: def super_method(name, ctx):
      
  
      result = None, None
  
      # get class ctx
      if isclass(ctx):
          _ctx = ctx
          first_mro = 1
      else:
          _ctx = ctx.__class__
          first_mro = 0
      # get class hierachy
      mro = getmro(_ctx)
      for cls in mro[first_mro:]:
          if hasattr(cls, name):
              result = getattr(cls, name), cls
              break
  
      return result
docs: Get super ctx method and ctx where name matches with input name.
  
      :param name: method name to find in super ctx.
      :param ctx: initial method ctx.
      :return: method in super ctx and super ctx.
      :rtype: tuple