code: def wsmape(actual, prediction):
      filtered = np.abs(actual) > EPS
      actual = actual[filtered]
      prediction = prediction[filtered]
      weights = np.abs(actual) / np.sum(np.abs(actual))
      return 2 * np.sum(
          weights
          * np.abs(actual - prediction)
          / (np.abs(actual) + np.abs(prediction))
      )
  
file_path: orbit/orbit/diagnostics/metrics.py
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: wsmape(actual, prediction) and returns: unknown