class_docstr: This class implements the :class:`torch_geometric.data.FeatureStore`
  interface to act as a local feature store for distributed training.
code: def _set_global_id_to_index(
      self, group_name: Union[NodeType, EdgeType]
  ):
      global_id = self.get_global_id(group_name)
  
      if global_id is None:
          return
  
      # TODO Compute this mapping without materializing a full-sized tensor:
      global_id_to_index = global_id.new_full(
          (int(global_id.max()) + 1,), fill_value=-1
      )
      global_id_to_index[global_id] = torch.arange(global_id.numel())
      self._global_id_to_index[group_name] = global_id_to_index
  
imports: import copy
  import json
  import os.path
  from dataclasses import dataclass
  from typing import Any, Dict, List, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from torch_geometric.data import FeatureStore, TensorAttr
  from torch_geometric.data.feature_store import _FieldStatus
  from torch_geometric.distributed.rpc import RPCCallBase, RPCRouter, rpc_async, rpc_register
  from torch_geometric.typing import EdgeType, NodeOrEdgeType, NodeType
label_desc: Use image node_id 6 for calling the LocalFeatureStore obj's underlying member method code with example usage: obj._set_global_id_to_index(group_name) without return types