def get_class_name(frame):
    """Returns class name for callable from `frame` or ''"""
    try:
        class_name = frame.f_locals['self'].__class__.__name__
    except (KeyError, AttributeError):
        class_name = ''
    return class_name
