def DrawLabel(label, x, y, color, font, transparency, bold=False, border=False, left_justify=False):
  color = pygame.Color(*[int(i + transparency * (i - j)) for i, j in zip(color, backdrop_color)])
  offset = DimensionsToPixels([x, y])
  ts = bold_font.render(label, True, color) if bold else font.render(label, True, color)
  if y > iphone_dims[1] - ts.get_height():
    offset[1] -= (ts.get_height() + 2)
  else:
    offset[1] += 2
  if left_justify:
    offset[0] = min(iphone_dims[0], offset[0])
  else:
    offset[0] = max(0, offset[0] - ts.get_width())
  GetSurface().blit(ts, offset)
  if border:
    pygame.draw.rect(GetSurface(), color,
                     [offset[0]-2, offset[1]-2, ts.get_width() + 4, ts.get_height() + 4], 1)
dataset/ETHPy150Open viewfinderco/viewfinder/clients/experimental/viewfinder.py/DrawLabel/swapped operands of `-`