code: def choices(self) -> list:
      choices = self.get_path(self.request.choices_path)
  
      if not isinstance(choices, list):
          raise InvalidChoices("choices were not a list")
  
      return flatten(choices)
  
imports: import re
  import collections.abc
  from typing import Optional
  from nboost.helpers import get_jsonpath, set_jsonpath, JSONTYPES, flatten
  from nboost.exceptions import *
  from nboost import defaults
label_desc: Use image node_id 2 for calling the ResponseDelegate obj's underlying member method code with example usage: obj.choices() and returns: flatten