code: def make_clipping_AV(ts, m):
      """
      returns an annotation vector proportional to the number if mins/maxs in the window
      """
      av = (ts == ts.min()) | (ts == ts.max())
      av, _ = movmeanstd(av, m)
      return av
  
file_path: matrixprofile-ts/matrixprofile/annotation_vector.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  from .utils import movmeanstd
label_desc: Use image node_id 3 for calling a global function with example usage: make_clipping_AV(ts, m) and returns: av