code: def sample_next_arch(self, max_nodes: int) -> (str, ModelMicroCfg):
      while True:
          self.log_prob, action = self.policy.select_action()
          arch_struct = self.policy.generate_arch(action)
          arch_id = self.space.arch_to_id(arch_struct)
          yield arch_id, arch_struct
  
file_path: singa/examples/model_selection/TRAILS-Database-Native-Model-Selection/internal/ml/model_selection/src/controller/sampler_rl/reinforcement_learning.py
imports: from src.controller.core.sample import Sampler
  from src.search_space.core.space import SpaceWrapper
  from src.search_space.core.model_params import ModelMicroCfg
  from src.third_pkg.models import CellStructure
label_desc: Use image node_id 2 for calling the RLSampler obj's underlying member method code with example usage: obj.sample_next_arch(max_nodes) without return types