def check_meta_data(facility):
 check_fields = ['user_count', 'latitude', 'longitude', 'address', 'contact_name', 'contact_phone', 'contact_email']
 return any([((getattr(facility, field, None) is None) or (getattr(facility, field) == '')) for field in check_fields])

def check_meta_data ( facility ) : check_fields = [ 'user_count' , 'latitude' , 'longitude' , 'address' , 'contact_name' , 'contact_phone' , 'contact_email' ] return any ( [ ( ( getattr ( facility , field , None ) is None ) or ( getattr ( facility , field ) == '' ) ) for field in check_fields ] )
checks whether any metadata is missing for the specified facility .