code: def is_sharded_tensor(x: tp.Any) -> bool:
      return isinstance(x, ShardedTensor)
  
file_path: audiocraft/audiocraft/optim/fsdp.py
imports: from contextlib import contextmanager
  import typing
  import dora
  import torch
  from torch.distributed.fsdp import FullyShardedDataParallel
  from torch.distributed.fsdp import MixedPrecision, ShardingStrategy, FullStateDictConfig, StateDictType
  from torch.distributed._shard.sharded_tensor.api import ShardedTensor
label_desc: Use image node_id 2 for calling a global function with example usage: is_sharded_tensor(x) and returns: isinstance