code: def test_fast_unique_multiple_list_gen_sort(self):
      keys = [["p", "a"], ["n", "d"], ["a", "s"]]
  
      gen = (key for key in keys)
      expected = np.array(["a", "d", "n", "p", "s"])
      out = lib.fast_unique_multiple_list_gen(gen, sort=True)
      tm.assert_numpy_array_equal(np.array(out), expected)
  
      gen = (key for key in keys)
      expected = np.array(["p", "a", "n", "d", "s"])
      out = lib.fast_unique_multiple_list_gen(gen, sort=False)
      tm.assert_numpy_array_equal(np.array(out), expected)
  
imports: import numpy
  import pytest
  from pandas._libs import Timedelta, lib, writers
  from pandas.compat import IS64
  from pandas import Index
  import pandas._testing
label_desc: Use image node_id 2 for calling the TestMisc obj's underlying member method code with example usage: obj.test_fast_unique_multiple_list_gen_sort() without return types