def execute(self, array_in, expression, **kwargs):
        """Creates and returns a masked view of the input array."""

        context = self.get_context(array_in, expression, kwargs)
        context.update(kwargs)
        return ma.masked_where(self.evaluate_expression(expression, context), array_in)