<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sampleLocationFromFeature(self, feature):
 """ Samples a location from the provided specific features. """

    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))