def tno_can_add(self, node, add_object):
        from mayavi.core.filter import Filter
        try:
            if issubclass(add_object, Filter) or \
                   issubclass(add_object, ModuleManager):
                return True
        except TypeError:
            if isinstance(add_object, Filter) or \
                   isinstance(add_object, ModuleManager):
                return True
        return False
Connect to the cloud provider, raising an exception on failure
dataset/ETHPy150Open enthought/mayavi/mayavi/core/source.py/Source.tno_can_add--crossover with--dataset/ETHPy150Open mpdehaan/strider/lib/strider/virt/ec2.py/EC2._connect