code: def _keep_visiting_tensors(value: STATE_DICT_ITEM) -> bool:
      return isinstance(value, torch.Tensor)
  
file_path: pytorch/torch/distributed/checkpoint/_traverse.py
imports: from typing import Callable, cast, Collection, List, Mapping, MutableMapping, Optional, Tuple, TypeVar, Union
  import torch
  from torch.distributed._shard.sharded_tensor.api import ShardedTensor
  from torch.distributed._tensor import DTensor
  from torch.distributed.checkpoint.metadata import STATE_DICT_TYPE
label_desc: Use image node_id 1 for calling a global function with example usage: _keep_visiting_tensors(value) and returns: isinstance