code: def test_from_records_misc_brokenness(self):
      # GH#2179
  
      data = {1: ["foo"], 2: ["bar"]}
  
      result = DataFrame.from_records(data, columns=["a", "b"])
      exp = DataFrame(data, columns=["a", "b"])
      tm.assert_frame_equal(result, exp)
  
      # overlap in index/index_names
  
      data = {"a": [1, 2, 3], "b": [4, 5, 6]}
  
      result = DataFrame.from_records(data, index=["a", "b", "c"])
      exp = DataFrame(data, index=["a", "b", "c"])
      tm.assert_frame_equal(result, exp)
  
imports: from collections.abc import Iterator
  from datetime import datetime
  from decimal import Decimal
  import numpy
  import pytest
  import pytz
  from pandas._config import using_pyarrow_string_dtype
  from pandas.compat import is_platform_little_endian
  from pandas import CategoricalIndex, DataFrame, Index, Interval, RangeIndex, Series, date_range
  import pandas._testing
label_desc: Use image node_id 22 for calling the TestFromRecords obj's underlying member method code with example usage: obj.test_from_records_misc_brokenness() without return types