code: def get_for_nearest_ancestor(self, cls, attribute_name):
          
          for family_cls in family(cls):
              if self.has(family_cls.__module__, family_cls.__name__, attribute_name):
                  return self.get(family_cls.__module__, family_cls.__name__, attribute_name)
  
          ini_filename = cls.__module__.split(".")[-1]
          raise exc.PriorException(
              "The prior config at {}/{} does not contain {} in {} or any of its parents".format(self.path,
                                                                                                 ini_filename,
                                                                                                 attribute_name,
                                                                                                 cls.__name__
                                                                                                 ))
docs: Find a prior with the attribute analysis_path from the config for this class or one of its ancestors
  
          Parameters
          ----------
          cls: class
              The class of interest
          attribute_name: String
              The analysis_path of the attribute
          Returns
          -------
          prior_array: []
              An array describing this prior