code: def mask_border(
      m: Tensor, b: int, v: Union[Tensor, float, bool]
  ) -> None:
      """Mask borders with value
      Args:
          m (torch.Tensor): [N, H0, W0, H1, W1]
          b (int)
          v (m.dtype)
      """
      if b <= 0:
          return
  
      m[:, :b] = v
      m[:, :, :b] = v
      m[:, :, :, :b] = v
      m[:, :, :, :, :b] = v
      m[:, -b:] = v
      m[:, :, -b:] = v
      m[:, :, :, -b:] = v
      m[:, :, :, :, -b:] = v
  
file_path: kornia/kornia/feature/loftr/utils/coarse_matching.py
imports: from typing import Any, Dict, Optional, Union
  import torch
  import torch.nn.functional
  from torch import nn
  from kornia.core import Module, Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: mask_border(m, b, v) without return types