def check_layer(uploaded):
 msg = ('Was expecting layer object, got %s' % type(uploaded))
 assert isinstance(uploaded, Layer), msg
 msg = ('The layer does not have a valid name: %s' % uploaded.name)
 assert (len(uploaded.name) > 0), msg

def check_layer ( uploaded ) : msg = ( 'Was expecting layer object, got %s' % type ( uploaded ) ) assert isinstance ( uploaded , Layer ) , msg msg = ( 'The layer does not have a valid name: %s' % uploaded . name ) assert ( len ( uploaded . name ) > 0 ) , msg
verify if an object is a valid layer .