code: def test_from_records_len0_with_columns(self):
      # GH#2633
      result = DataFrame.from_records(
          [], index="foo", columns=["foo", "bar"]
      )
      expected = Index(["bar"])
  
      assert len(result) == 0
      assert result.index.name == "foo"
      tm.assert_index_equal(result.columns, expected)
  
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 9 for calling the TestFromRecords obj's underlying member method code with example usage: obj.test_from_records_len0_with_columns() without return types