code: def get_laf_pts_to_draw(
      LAF: Tensor, img_idx: int = 0
  ) -> Tuple[List[int], List[int]]:
      """Returns list for drawing LAFs (local features).
  
      Args:
          LAF: :math:`(B, N, 2, 3)`
          n_pts: number of points to output.
  
      Returns:
          List of boundary points x, y`
  
      Examples:
          x, y = get_laf_pts_to_draw(LAF, img_idx)
          plt.figure()
          plt.imshow(kornia.utils.tensor_to_image(img[img_idx]))
          plt.plot(x, y, 'r')
          plt.show()
      """
      # TODO: Refactor doctest
      KORNIA_CHECK_LAF(LAF)
      pts = laf_to_boundary_points(LAF[img_idx : img_idx + 1])[0]
      pts_np = pts.detach().permute(1, 0, 2).cpu()
      return (pts_np[..., 0].tolist(), pts_np[..., 1].tolist())
  
imports: import math
  from typing import List, Optional, Tuple, Union
  import torch
  import torch.nn.functional
  from kornia.core import Tensor, concatenate, cos, sin, stack, tensor, zeros
  from kornia.core.check import KORNIA_CHECK_LAF, KORNIA_CHECK_SHAPE
  from kornia.geometry.conversions import angle_to_rotation_matrix, convert_points_from_homogeneous, rad2deg
  from kornia.geometry.linalg import transform_points
  from kornia.geometry.transform import pyrdown
label_desc: Use image node_id 11 for calling a global function with example usage: get_laf_pts_to_draw(LAF, img_idx) and returns: pts_np,  pts_np