code: def sampled_prob(pts, lb, ub, map=None):
      """
      calculates probability by sampling if points are inside the given bounds
  
      Inputs:
          pts -- a list of sample points
          lb -- a list of lower bounds
          ub -- a list of upper bounds
          map -- the mapping function [Default is builtins.map]"""
      prob = float(sampled_pts(pts, lb, ub, map)) / float(len(pts[0]))
      return prob
  
file_path: mystic/mystic/math/samples.py
label_desc: Use image node_id 14 for calling a global function with example usage: sampled_prob(pts, lb, ub, map) and returns: prob