code: def _triangular_adjacency(adjacency):
      """
      Gets the triangular version of the adjacency matrix, removing redundant
      values.
  
      :param adjacency: The full adjacency matrix, with shape
          ([batch], n_nodes, n_nodes).
      :return: The upper triangle of the adjacency matrix, with the lower
          triangle set to zero.
      """
      return tf.linalg.band_part(adjacency, 0, -1)
  
imports: import copy
  import warnings
  from functools import partial
  import numpy
  import tensorflow
  from scipy import linalg
  from scipy import sparse
  from scipy.sparse.linalg import ArpackNoConvergence
label_desc: Use image node_id 8 for calling a global function with example usage: _triangular_adjacency(adjacency) and returns: tf