class_docstr: A candidate generator provides candidate model configurations to the
  recommender.
class_docstr_tok: ["A","candidate","generator","provides","candidate","model","configurations","to","the","recommender","."]
docstr: Generates a list of possible model configurations according to the
  strategy defined by the class.
  
  Args:
      candidates: If provided, every model configuration returned must be a member of this
          set.
  
  Returns:
      The generated model configurations.
docstr_tok: ["Generates","a","list","of","possible","model","configurations","according","to","the","strategy","defined","by","the","class",".","Args",":","candidates",":","If","provided",",","every","model","configuration","returned","must","be","a","member","of","this","set",".","Returns",":","The","generated","model","configurations","."]
code: def generate(self, candidates: Optional[List[T]] = None) -> List[T]:
      """
      Generates a list of possible model configurations according to the
      strategy defined by the class.
  
      Args:
          candidates: If provided, every model configuration returned must be a member of this
              set.
  
      Returns:
          The generated model configurations.
      """
  
imports: from abc import ABC, abstractmethod
  from typing import Generic, List, Optional, TypeVar
label_desc: Use image node_id 2 for calling the CandidateGenerator obj's underlying member method code with example usage: obj.generate(candidates) without return types