def METHOD_NAME(ds):
    """Sample function that will be called when passed into attr_check"""
    try:
        if ds.dummy + "y" == "dummyy":
            return base.ratable_result(True, "dummy", [])
        else:
            return base.ratable_result(False, "dummy", [ds.dummy + "y"])
    except AttributeError:
        return base.ratable_result(False, "dummy", [])