code: def get_page_dpi(pageinfo, options):
      "Get the DPI when nonsquare DPI is tolerable"
      xres = max(
          pageinfo.xres or VECTOR_PAGE_DPI,
          options.oversample or 0,
          VECTOR_PAGE_DPI if pageinfo.has_vector else 0,
      )
      yres = max(
          pageinfo.yres or VECTOR_PAGE_DPI,
          options.oversample or 0,
          VECTOR_PAGE_DPI if pageinfo.has_vector else 0,
      )
      return (float(xres), float(yres)f get_page_dpi(pageinfo, options):
      "Get the DPI when nonsquare DPI is tolerable"
      xres = max(
          pageinfo.xres or VECTOR_PAGE_DPI,
          options.oversample or 0,
          VECTOR_PAGE_DPI if pageinfo.has_vector else 0,
      )
      yres = max(
          pageinfo.yres or VECTOR_PAGE_DPI,
          options.oversample or 0,
          VECTOR_PAGE_DPI if pageinfo.has_vector else 0,
      )
      return (float(xres), float(yres))
docs: Get the DPI when nonsquare DPI is tolerable