code: def trace_level(main):
      """Returns the level of the trace of -infinity if it is None."""
      if main:
          return main.level
      return float("-inf")
  
imports: import jax
  from ..None import errors
label_desc: Use image node_id 2 for calling a global function with example usage: trace_level(main) and returns: float, main