def METHOD_NAME(self, code, return_type, **kwargs):
    self.symtab.pushFrame()
    msg_type = self.type_ast.type
    # Add new local var to symbol table
    var = Var(
        self.symtab,
        "in_msg",
        self.location,
        msg_type,
        "(*in_msg_ptr)",
        self.pairs,
    )
    self.symtab.newSymbol(var)
    # Check the queue type
    self.queue_name.assertType("InPort")
    # Declare the new "in_msg_ptr" variable
    mtid = msg_type.c_ident
    qcode = self.queue_name.var.code
    code(
        """