code: def is_upper_triangular(matrix):
      """True if matrix is 0 on diagonal and below."""
      for src in range(np.shape(matrix)[0]):
          for dst in range(0, src + 1):
              if matrix[src, dst] != 0:
                  return False
  
      return True
  
file_path: singa/examples/model_selection/TRAILS-Database-Native-Model-Selection/internal/ml/model_selection/src/third_pkg/sp101_lib/model_spec.py
imports: import copy
  import hashlib
  import itertools
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: is_upper_triangular(matrix) and returns: True, False