code: def _pad_rb(x, size):
      """Pads right bottom."""
      pad_h = size - x.shape[-2]
      pad_w = size - x.shape[-1]
      return pad(x, (0, pad_w, 0, pad_h))
  
file_path: kornia/test/contrib/models/test_sam.py
imports: import pytest
  import torch
  from kornia.contrib.models.sam import Sam, SamConfig
  from kornia.core import pad
  from kornia.testing import BaseTester
label_desc: Use image node_id 1 for calling a global function with example usage: _pad_rb(x, size) and returns: pad