code: def test_flat_stays_flat(self):
      recs = [{"flat1": 1, "flat2": 2}, {"flat3": 3, "flat2": 4}]
      result = nested_to_record(recs)
      expected = recs
      assert result == expected
  
imports: import json
  import numpy
  import pytest
  from pandas import DataFrame, Index, Series, json_normalize
  import pandas._testing
  from pandas.io.json._normalize import nested_to_record
label_desc: Use image node_id 1 for calling the TestNestedToRecord obj's underlying member method code with example usage: obj.test_flat_stays_flat() without return types