class_docstr: Test case of valid data collection interface 
docstr: target: test flat_map() API for pipeline
  method: Get the input data, apply it to a function, then output.
  expected: output successfully
docstr_tok: ["target",":","test","flat_map","(",")","API","for","pipeline","method",":","Get","the","input","data",",","apply","it","to","a","function",",","then","output",".","expected",":","output","successfully"]
code: def test_data_collection_flat_map(self):
      """
      target: test flat_map() API for pipeline
      method: Get the input data, apply it to a function, then output.
      expected: output successfully
      """
      p = (
          towhee.pipe.input("a")
          .flat_map("a", "b", lambda x: [e + 10 for e in x])
          .output("b")
      )
      res = p([1, 2, 3])
      assert res.get() == [11]
      assert res.get() == [12]
      assert res.get() == [13]
  
      return True
  
imports: import sys
  import towhee
  import time
  import threading
  import numpy
  import random
  import operator
  from common import common_func
  from towhee import pipe, ops
label_desc: Use image node_id 4 for calling the TestDataCollectionAPIsValid obj's underlying member method code with example usage: obj.test_data_collection_flat_map() and returns: True