code: def parse_width(width, n):
      
      if isinstance(width, int):
          widths = [width] * n
  
      else:
          assert len(width) == n, "Widths and data do not match"
          widths = width
  
      return widths
docs: Parses an int or array of widths
  
      Parameters
      ----------
      width : int or array_like
      n : int