code: def calc_columns_rows(n):
      
      num_columns = int(ceil(sqrt(n)))
      num_rows = int(ceil(n / float(num_columns)))
      return (num_columns, num_rows)
docs: Calculate the number of columns and rows required to divide an image
      into ``n`` parts.
  
      Return a tuple of integers in the format (num_columns, num_rows)