def METHOD_NAME(self, other=None):
    """
    Given `self` and `other`, return the desired base
    class for an operation result.
    """
    if other is None:
        return ModularVariable
    return CellVariable.METHOD_NAME(self, other)