<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fMeasure(self, label, beta=None):
 """ Returns f-measure. """

        if beta is None:
            return self.call("fMeasure", label)
        else:
            return self.call("fMeasure", label, beta)