code: def _select_row_from_sparse_tensor(one_hot_encoded_row, sp_tensor_T):
      """
      This function gathers the row specified in one_hot_encoded_row from the input sparse matrix
  
      Args:
          one_hot_encoded_row: one-hot-encoded row
          sp_tensor_T: the transpose of the sparse matrix
  
      returns:
          The specified row from sp_tensor_T.
      """
      one_hot_encoded_row = tf.reshape(
          tf.sparse.to_dense(one_hot_encoded_row),
          shape=(1, sp_tensor_T.shape[1]),
      )
      row_T = K.dot(sp_tensor_T, K.transpose(one_hot_encoded_row))
      row = K.transpose(row_T)
      return row
  
file_path: stellargraph/stellargraph/mapper/adjacency_generators.py
imports: import tensorflow
  from tensorflow.keras import backend
  import numpy
  from ..core import StellarGraph
  from ..core.validation import require_integer_in_range
  from ..core.utils import normalize_adj
  from .base import Generator
label_desc: Use image node_id 2 for calling a global function with example usage: _select_row_from_sparse_tensor(one_hot_encoded_row, sp_tensor_T) and returns: row