def check_has_attr(self, obj, attr):
        if not obj.attributes.has(attr):
            self.caller.msg(
                "%s doesn't have an attribute %s."
                % (obj.name, attr))
            return False
        return True
Create function with name and type signature
dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py/CmdCpAttr.check_has_attr--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/printing/llvmjitcode.py/LLVMJitCode._create_function_base