code: def display_to_paper(x, y, layout):
      """Convert mpl display coordinates to plotly paper coordinates.
  
      Plotly references object positions with an (x, y) coordinate pair in either
      'data' or 'paper' coordinates which reference actual data in a plot or
      the entire plotly axes space where the bottom-left of the bottom-left
      plot has the location (x, y) = (0, 0) and the top-right of the top-right
      plot has the location (x, y) = (1, 1). Display coordinates in mpl reference
      objects with an (x, y) pair in pixel coordinates, where the bottom-left
      corner is at the location (x, y) = (0, 0) and the top-right corner is at
      the location (x, y) = (figwidth*dpi, figheight*dpi). Here, figwidth and
      figheight are in inches and dpi are the dots per inch resolution.
  
      """
      num_x = x - layout["margin"]["l"]
      den_x = layout["width"] - (
          layout["margin"]["l"] + layout["margin"]["r"]
      )
      num_y = y - layout["margin"]["b"]
      den_y = layout["height"] - (
          layout["margin"]["b"] + layout["margin"]["t"]
      )
      return num_x / den_x, num_y / den_y
  
imports: import math
  import datetime
  import warnings
  import matplotlib.dates
label_desc: Use image node_id 11 for calling a global function with example usage: display_to_paper(x, y, layout) and returns: unknown,  unknown