code: def _divide_no_nan(a: np.ndarray, b: np.ndarray) -> np.ndarray:
      """
      Auxiliary funtion to handle divide by 0
      """
      div = a / b
      div[div != div] = 0.0
      div[div == float("inf")] = 0.0
      return div
  
file_path: neuralforecast/neuralforecast/losses/numpy.py
imports: from typing import Optional, Union
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _divide_no_nan(a, b) and returns: div