(learner)
return getattr(learner, "name", type(learner).__name__)
Return the value of `learner.name` if it exists, or the learner's type
    name otherwise
Return the value of `learner.name` if it exists, or the learner's type
    name otherwise
Return the value of learner . name if it exists or the learner s type name otherwise
def learner_name(learner):
    """Return the value of `learner.name` if it exists, or the learner's type
    name otherwise"""
    return getattr(learner, "name", type(learner).__name__)
def learner_name ( learner ) : return getattr ( learner , "name" , type ( learner ) . __name__ )