docstr: Sample one random architecture, can sample max 10k architectures.
  :return: arch_id, architecture
docstr_tok: ["Sample","one","random","architecture",",","can","sample","max","10k","architectures",".",":","return",":","arch_id",",","architecture"]
code: def sample_next_arch(
      self, sorted_model: list = None
  ) -> (str, ModelMicroCfg):
      """
      Sample one random architecture, can sample max 10k architectures.
      :return: arch_id, architecture
      """
  
      try:
          arch_id, arch_micro = self.arch_gene.__next__()
          return arch_id, arch_micro
      except Exception as e:
          if "StopIteration" in str(e):
              print("the end")
              return None, None
          else:
              raise e
  
file_path: singa/examples/model_selection/TRAILS-Database-Native-Model-Selection/internal/ml/model_selection/src/controller/sampler_all/seq_sampler.py
imports: import random
  from src.controller.core.sample import Sampler
  from src.search_space.core.model_params import ModelMicroCfg
  from src.search_space.core.space import SpaceWrapper
label_desc: Use image node_id 2 for calling the SequenceSampler obj's underlying member method code with example usage: obj.sample_next_arch(sorted_model) and returns: arch_id,  arch_micro, None,  None