Solved by ptrblck in post #4 
              
              
                I"m not familiar with Ray Tune, but the error seems to come from a call to a bool value: 
mask = True
mask()
> TypeError: 'bool' object is not callable