code: def _build_matrix(smooth_relations):
      """Build a 2D matrix from smooth relations.
  
      Parameters
      ==========
  
      smooth_relations : Stores smooth relations
      """
      matrix = []
      for s_relation in smooth_relations:
          matrix.append(s_relation[2])
      return matrix
  
imports: from sympy.core.random import _randint
  from sympy.external.gmpy import gcd, invert, sqrt
  from sympy.ntheory.residue_ntheory import _sqrt_mod_prime_power
  from sympy.ntheory import isprime
  from math import log, sqrt
label_desc: Use image node_id 7 for calling a global function with example usage: _build_matrix(smooth_relations) and returns: matrix