code: def _make_nested_list(self, gen):
          
  
          res = []
  
          for ele in gen:
              if ele is None:
                  res.append(None)
  
              elif not is_string_like(ele) and is_generator_like(ele):
                  # Nested generator
                  res.append(self._make_nested_list(ele))
  
              else:
                  res.append(ele)
  
          return res
docs: Makes nested list from generator for creating numpy.array