def validate_structure(self):
        """
        Sanity check of own properties. Raises InvaildFunctionErrors.
        """

        if [None, ''] in self.name:
            raise InvalidFunctionError(
                'invalid function definition - name required'
            )

        if self.returns is None:
            raise InvalidFunctionError(
                'function definition "%s" is missing a return type' % (
                    self.full_name
                )
            )
dataset/ETHPy150Open StackHut/stackhut/stackhut_toolkit/common/barrister/runtime.py/Function.validate_structure/swapped operands of `in`