def is_imported(self, name):
        """ Returns TRUE if a name is imported. """

        components = name.split('.')

        return self.imports in components[0]
dataset/ETHPy150Open enthought/envisage/envisage/developer/code_browser/namespace.py/Namespace.is_imported/swapped operands of `in`