code: def _compute_error_ratio(error_estimate, rtol, atol, y0, y1, norm):
      error_tol = atol + rtol * torch.max(y0.abs(), y1.abs())
      return norm(error_estimate / error_tol).abs()
  
imports: from enum import Enum
  import math
  import numpy
  import torch
  import warnings
  from .event_handling import combine_event_functions
label_desc: Use image node_id 7 for calling a global function with example usage: _compute_error_ratio(error_estimate, rtol, atol, y0, y1, norm) and returns: norm