code: def ogbl_data_to_general_static_graph(
      cls,
      ogbl_data: _typing.Mapping[str, _typing.Union[np.ndarray, int]],
      heterogeneous_edges: _typing.Mapping[
          _typing.Tuple[str, str, str],
          _typing.Union[
              torch.Tensor,
              _typing.Tuple[
                  torch.Tensor,
                  _typing.Optional[_typing.Mapping[str, torch.Tensor]],
              ],
          ],
      ] = ...,
      nodes_data_key_mapping: _typing.Optional[
          _typing.Mapping[str, str]
      ] = ...,
      graph_data_key_mapping: _typing.Optional[
          _typing.Mapping[str, str]
      ] = ...,
  ) -> GeneralStaticGraph:
      return GeneralStaticGraphGenerator.create_heterogeneous_static_graph(
          {
              "": dict(
                  [
                      (
                          target_data_key,
                          torch.from_numpy(
                              ogbl_data[source_data_key]
                          ).squeeze(),
                      )
                      for source_data_key, target_data_key in nodes_data_key_mapping.items()
                  ]
              )
          },
          heterogeneous_edges,
          dict(
              [
                  (
                      target_data_key,
                      torch.from_numpy(
                          ogbl_data[source_data_key]
                      ).squeeze(),
                  )
                  for source_data_key, target_data_key in graph_data_key_mapping.items()
              ]
          )
          if isinstance(graph_data_key_mapping, _typing.Mapping)
          else ...,
      )
  
imports: import numpy
  import torch
  import typing
  from autogl import backend
  from torch_sparse import SparseTensor
  from autogl import backend
  from autogl.data import InMemoryStaticGraphSet
  from autogl.data.graph import GeneralStaticGraph, GeneralStaticGraphGenerator
  from ._dataset_registry import DatasetUniversalRegistry
  from .utils import index_to_mask
label_desc: Use image node_id 1 for calling the _OGBLDatasetUtil obj's underlying member method code with example usage: obj.ogbl_data_to_general_static_graph(cls, ogbl_data, heterogeneous_edges, nodes_data_key_mapping, graph_data_key_mapping) and returns: GeneralStaticGraphGenerator