code: def multinormal_pdf(mean, var):
      """var must be symmetric positive definite"""
      import numpy
  
      vinv = numpy.linalg.inv(var)
      mu = numpy.array(mean).flatten()
      n = len(mu)
  
      # check that var is properly sized
      dum = numpy.dot(mu, var) - numpy.dot(var, mu)
  
      prefactor = 1.0 / numpy.sqrt(
          (2 * numpy.pi) ** n * numpy.linalg.det(var)
      )
  
      def _(x):
          xm = numpy.array(x) - mu
          return prefactor * numpy.exp(
              -0.5 * numpy.dot(xm, numpy.dot(vinv, xm))
          )
  
      return _
  
file_path: mystic/mystic/scemtools.py
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: multinormal_pdf(mean, var) and returns: _, unknown