class_docstr: Subclass of FSDPStrategy to ensure compatibility with Ray orchestration.
  
  For a full list of initialization arguments, please refer to:
  https://lightning.ai/docs/pytorch/stable/api/lightning.pytorch.strategies.FSDPStrategy.html
class_docstr_tok: ["Subclass","of","FSDPStrategy","to","ensure","compatibility","with","Ray","orchestration",".","For","a","full","list","of","initialization","arguments",",","please","refer","to",":","https",":","\/\/lightning.ai\/docs\/pytorch\/stable\/api\/lightning.pytorch.strategies.FSDPStrategy.html"]
code: def distributed_sampler_kwargs(self) -> Dict[str, Any]:
      return dict(
          num_replicas=self.world_size,
          rank=self.global_rank,
      )
  
imports: import logging
  import os
  import shutil
  import tempfile
  from typing import Any, Dict
  import torch
  from packaging.version import Version
  import ray
  from ray import train
  from ray._private.usage.usage_lib import TagKey, record_extra_usage_tag
  from ray.train import Checkpoint
  from ray.util import PublicAPI
label_desc: Use image node_id 3 for calling the RayFSDPStrategy obj's underlying member method code with example usage: obj.distributed_sampler_kwargs() and returns: dict