class_docstr: Evaluates how well a perturbed attacked_text object is achieving a
  specified goal.
  
  Args:
      model_wrapper (:class:`~textattack.models.wrappers.ModelWrapper`):
          The victim model to attack.
      maximizable(:obj:`bool`, `optional`, defaults to :obj:`False`):
          Whether the goal function is maximizable, as opposed to a boolean result of success or failure.
      query_budget (:obj:`float`, `optional`, defaults to :obj:`float("in")`):
          The maximum number of model queries allowed.
      model_cache_size (:obj:`int`, `optional`, defaults to :obj:`2**20`):
          The maximum number of items to keep in the model results cache at once.
class_docstr_tok: ["Evaluates","how","well","a","perturbed","attacked_text","object","is","achieving","a","specified","goal",".","Args",":","model_wrapper","(",":","class",":","`","~textattack.models.wrappers.ModelWrapper","`",")",":","The","victim","model","to","attack",".","maximizable","(",":","obj",":","`","bool","`",",","`","optional","`",",","defaults","to",":","obj",":","`","False","`",")",":","Whether","the","goal","function","is","maximizable",",","as","opposed","to","a","boolean","result","of","success","or","failure",".","query_budget","(",":","obj",":","`","float","`",",","`","optional","`",",","defaults","to",":","obj",":","`","float","(","``","in","''",")","`",")",":","The","maximum","number","of","model","queries","allowed",".","model_cache_size","(",":","obj",":","`","int","`",",","`","optional","`",",","defaults","to",":","obj",":","`","2","*","*","20","`",")",":","The","maximum","number","of","items","to","keep","in","the","model","results","cache","at","once","."]
docstr: A helper method that queries ``self.get_results`` with a single
  ``AttackedText`` object.
docstr_tok: ["A","helper","method","that","queries","``","self.get_results","``","with","a","single","``","AttackedText","``","object","."]
code: def get_result(self, attacked_text, **kwargs):
      """A helper method that queries ``self.get_results`` with a single
      ``AttackedText`` object."""
      results, search_over = self.get_results([attacked_text], **kwargs)
      result = results[0] if len(results) else None
      return result, search_over
  
imports: from abc import ABC, abstractmethod
  import lru
  import numpy
  import torch
  from textattack.goal_function_results.goal_function_result import GoalFunctionResultStatus
  from textattack.shared import validators
  from textattack.shared.utils import ReprMixin
label_desc: Use image node_id 5 for calling the GoalFunction obj's underlying member method code with example usage: obj.get_result(attacked_text) and returns: result,  search_over