code: def random_samples_indices(
      iters: int, rdims: Tensor, dv: torch.device
  ) -> Tensor:
      rands = torch.rand(size=(iters, 2, rdims.shape[0]), device=dv)
      scaled_rands = rands * (rdims - 1e-8).float()
      rand_samples_rel = scaled_rands.long()
      return rand_samples_rel
  
file_path: kornia/kornia/feature/adalam/utils.py
imports: import math
  from typing import Tuple
  import torch
  from kornia.core import Tensor
label_desc: Use image node_id 11 for calling a global function with example usage: random_samples_indices(iters, rdims, dv) and returns: rand_samples_rel