code: def as_str(inputs: Union[NodeType, EdgeType]) -> str:
      if isinstance(inputs, NodeType):
          return inputs
      elif isinstance(inputs, (list, tuple)) and len(inputs) == 3:
          return "__".join(inputs)
      return ""
  
file_path: pytorch_geometric/torch_geometric/distributed/utils.py
imports: from typing import Dict, List, Optional, Tuple, Union
  import numpy
  import torch
  from torch import Tensor
  from torch_geometric.data import HeteroData
  from torch_geometric.distributed import LocalFeatureStore, LocalGraphStore
  from torch_geometric.sampler import SamplerOutput
  from torch_geometric.typing import EdgeType, NodeType
label_desc: Use image node_id 3 for calling a global function with example usage: as_str(inputs) and returns: str, inputs, str