code: def test_from_pandas_with_index():
      pdf = pd.DataFrame(
          {"a": [0, 1, 2, 3], "b": [0.1, 0.2, None, 0.3]}
      )
      pdf = pdf.set_index(np.asarray([4, 3, 2, 1]))
      df = DataFrame.from_pandas(pdf)
  
      # Check columns
      assert_eq(df.a, pdf.a)
      assert_eq(df.b, pdf.b)
      # Check index
      assert_eq(df.index.values, pdf.index.values)
      # Check again using pandas testing tool on frames
      assert_eq(df, pdf)
  
file_path: cudf/python/cudf/cudf/tests/test_pandas_interop.py
imports: import numpy
  import pandas
  import cudf
  from cudf import DataFrame
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 4 for calling a global function with example usage: test_from_pandas_with_index() without return types