code: def is_customized_distributed_tensor(tensor: torch.Tensor):
      """
      Check whether the given tensor is a customized distributed tensor.
  
      Args:
          tensor (torch.Tensor): The tensor to be checked.
  
      Returns:
          bool: Whether the given tensor is a customized distributed tensor.
      """
      return hasattr(tensor, "shard_fn") and hasattr(
          tensor, "gather_fn"
      )
  
imports: import copy
  import operator
  from functools import reduce
  from typing import Union
  import torch
  import torch.distributed
  from torch.distributed import ProcessGroup
  from colossalai.device.device_mesh import DeviceMesh
  from .layout import Layout
  from .layout_converter import LayoutConverter
  from .sharding_spec import ShardingSpec
label_desc: Use image node_id 20 for calling a global function with example usage: is_customized_distributed_tensor(tensor) and returns: unknown