def METHOD_NAME(self, name, keyword) -> ArgType:
    if keyword == "type":
        return self.pos_args.get(name, None)
    elif keyword == "vartype":
        return self.ivars.get(name, None)
    elif keyword == "paramtype":
        return self.kwargs.get(name, None)
    else:
        logging.error(f"Unexpected keyword {keyword}.")
        return None