def verify_data_model(data):
  """Verifies the shape of the input"""
  right_input = True
  for i in range(data['num_product']):
    matrix_line = data['comp_matrix'][i]
    if len(matrix_line) != data['num_product']:
      print("len(comp_matrix[{0}]) = {1} while there is {2} lines in the matrix.\n".format(i, len(matrix_line), data['num_product']))
      right_input = False

  if len(data['name_product']) != data['num_product']:
    print("There is {0} names of products and {1} products.\n".format(len(data['name_product']), data['num_product']))
    right_input = False
  if not right_input:
    print("WRONG INPUT: problem will not be solved.\n")

  return right_input