def METHOD_NAME(self):
    """
    Builds the transfer function according to the current state of the
    TransferFunctionHelper.
    Returns
    -------
    A ColorTransferFunction object.
    """
    if self.bounds is None:
        mylog.info(
            "Calculating data bounds. This may take a while. "
            "Set the TransferFunctionHelper.bounds to avoid this."
        )
        self.set_bounds()
    if self.log:
        mi, ma = np.log10(self.bounds[0]), np.log10(self.bounds[1])
    else:
        mi, ma = self.bounds
    self.tf = ColorTransferFunction(
        (mi, ma), grey_opacity=self.grey_opacity, nbins=512
    )
    return self.tf