code: def normalized_coords_transform(x0, y0, w, h):
      """
      Coordinates transform that maps top left corner to (-1, -1) and bottom
      right corner to (1, 1). Used for torch.grid_sample to initialize the
      grid
      """
  
      def f(p):
          return (2 * (p[0] - x0) / w - 1, 2 * (p[1] - y0) / h - 1)
  
      return f
  
imports: from typing import BinaryIO, Dict, Union
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: normalized_coords_transform(x0, y0, w, h) and returns: f, unknown,  unknown