class_docstr: Problem class for Program Search Algolisp task.
  
  Synthesizing programs from description and examples.
  
  Please see: https://arxiv.org/pdf/1802.04335.pdf for the full description.
class_docstr_tok: ["Problem","class","for","Program","Search","Algolisp","task",".","Synthesizing","programs","from","description","and","examples",".","Please","see",":","https",":","\/\/arxiv.org\/pdf\/1802.04335.pdf","for","the","full","description","."]
code: def _flatten_target_programs(iterable):
      # The target programs are read as nested lists, we should flatten them.
      yield "["
      it = iter(iterable)
      for e in it:
          if isinstance(e, (list, tuple)):
              for f in ProgramSearchAlgolisp._flatten_target_programs(
                  e
              ):
                  yield f
          else:
              yield e
      yield "]"
  
file_path: tensor2tensor/tensor2tensor/data_generators/program_search.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gzip
  import json
  import os
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the ProgramSearchAlgolisp obj's underlying member method code with example usage: obj._flatten_target_programs(iterable) without return types