code: def _numpy(self, s1, s2):
      s1 = numpy.asarray(s1)
      s2 = numpy.asarray(s2)
      q = numpy.matrix(s1 - s2)
      result = (q * q.T).sum()
      if self.squared:
          return result
      return numpy.sqrt(result)
  
imports: from functools import reduce
  from typing import Any
  from .base import Base, BaseSimilarity
label_desc: Use image node_id 2 for calling the Euclidean obj's underlying member method code with example usage: obj._numpy(s1, s2) and returns: numpy, result