docstr: Parameters
  ----------
  global_rank
      Global rank of current process.
docstr_tok: ["Parameters","--","--","--","--","--","global_rank","Global","rank","of","current","process","."]
code: def get_batch_indices_cache_dir(self, global_rank: int):
      """
      Parameters
      ----------
      global_rank
          Global rank of current process.
      """
      return os.path.join(
          self.output_dir, f"sample_indices_rank_{global_rank}.pt"
      )
  
imports: import logging
  import os
  import shutil
  import time
  import uuid
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Sequence
  import lightning.pytorch
  import torch
  from lightning.pytorch.callbacks import BasePredictionWriter
  from ..constants import BBOX, LM_TARGET, LOGIT_SCALE, LOGITS, TEMPLATE_LOGITS, WEIGHT
label_desc: Use image node_id 3 for calling the DDPPredictionWriter obj's underlying member method code with example usage: obj.get_batch_indices_cache_dir(global_rank) and returns: os