code: def __transform_homogeneous_static_graph(
      self, static_graph: GeneralStaticGraph
  ) -> GeneralStaticGraph:
      if "x" in static_graph.nodes.data and isinstance(
          self._selection, (torch.Tensor, np.ndarray)
      ):
          static_graph.nodes.data["x"] = static_graph.nodes.data["x"][
              :, self._selection
          ]
      if "feat" in static_graph.nodes.data and isinstance(
          self._selection, (torch.Tensor, np.ndarray)
      ):
          static_graph.nodes.data["feat"] = static_graph.nodes.data[
              "feat"
          ][:, self._selection]
      return static_graph
  
file_path: AutoGL/autogl/module/feature/_selectors/_basic.py
imports: import numpy
  import torch
  import typing
  from autogl.data.graph import GeneralStaticGraph
  from .._base_feature_engineer import BaseFeatureEngineer
  from .._feature_engineer_registry import FeatureEngineerUniversalRegistry
label_desc: Use image node_id 2 for calling the BaseFeatureSelector obj's underlying member method code with example usage: obj.__transform_homogeneous_static_graph(static_graph) and returns: static_graph