def fq_path(ob):
    """
    Return the fully qualified path of ``ob``, expected to be a function or
    method
    """
    name = getattr(ob, '__qualname__', None) or getattr(ob, '__name__', None
        ) or repr(ob)
    module = getattr(ob, '__module__', None) or ''
    return '{}.{}'.format(module, name)
