code: def sampleLocationFromFeature(self, feature):
      
      if feature == "topDisc":
        return self._sampleLocationOnDisc(top=True)
      elif feature == "topEdge":
        return self._sampleLocationOnEdge(top=True)
      elif feature == "bottomDisc":
        return self._sampleLocationOnDisc(top=False)
      elif feature == "bottomEdge":
        return self._sampleLocationOnEdge(top=False)
      elif feature == "side":
        return self._sampleLocationOnSide()
      elif feature == "random":
        return self.sampleLocation()
      else:
        raise NameError("No such feature in {}: {}".format(self, feature))
docs: Samples a location from the provided specific features.