code: def check_conditions(sigma, m, order):
      """Checks conditions C5 and C6 (Section B.4.2 in Appendix)."""
      q = sp.symbols("q", positive=True, real=True)
  
      beta = _construct_symbolic_beta(q, sigma, order)
      q0 = math.exp(compute_logq0_gnmax(sigma, order))
  
      cond5 = _is_non_decreasing(beta, q, (0, q0))
  
      if cond5:
          bl_q0 = _compute_bl_gnmax(q0, sigma, m)
  
          bu = _construct_symbolic_bu(q, sigma, m)
          delta_beta = beta.subs(q, bu) - beta
  
          cond6 = _is_non_decreasing(delta_beta, q, (0, bl_q0))
      else:
          cond6 = False  # Skip the check, since Condition 5 is false already.
  
      return (cond5, cond6)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  from absl import app
  import numpy
  import scipy
  import sympy
  import core
label_desc: Use image node_id 20 for calling a global function with example usage: check_conditions(sigma, m, order) and returns: cond5,  cond6