<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def super_method(name, ctx):
 """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"""


    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