def check_uuid4(logical_line):
 msg = 'N357: Use oslo_utils.uuidutils or uuidsentinel(in case of test cases) to generate UUID instead of uuid4().'
 if ('uuid4().' in logical_line):
  return
 if ('uuid4()' in logical_line):
  (yield (0, msg))

def check_uuid4 ( logical_line ) : msg = 'N357: Use oslo_utils.uuidutils or uuidsentinel(in case of test cases) to generate UUID instead of uuid4().' if ( 'uuid4().' in logical_line ) : return if ( 'uuid4()' in logical_line ) : ( yield ( 0 , msg ) )
generating uuid use oslo_utils .