def set_defaults(self, other=None):                
        if other is None:
            self.is_valid = False
        else:
            self.is_valid = other.is_valid
            self._spec = copy.copy(other._spec)
            self._descriptors = copy.copy(other._descriptors)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/vistrail/port.py/Port.set_defaults/original