code: def test_select_by_index_multiindex():
      """
      Test getting column(s) by label with MultiIndex
      """
      ca = ColumnAccessor(
          {
              ("a", "b", "c"): [1, 2, 3],
              ("a", "b", "e"): [2, 3, 4],
              ("b", "x", ""): [4, 5, 6],
              ("a", "d", "e"): [3, 4, 5],
          },
          multiindex=True,
      )
  
      expect = ColumnAccessor(
          {
              ("a", "b", "c"): [1, 2, 3],
              ("a", "b", "e"): [2, 3, 4],
              ("b", "x", ""): [4, 5, 6],
          },
          multiindex=True,
      )
      got = ca.select_by_index(slice(0, 3))
      check_ca_equal(expect, got)
  
      expect = ColumnAccessor(
          {
              ("a", "b", "c"): [1, 2, 3],
              ("a", "b", "e"): [2, 3, 4],
              ("a", "d", "e"): [3, 4, 5],
          },
          multiindex=True,
      )
      got = ca.select_by_index([0, 1, 3])
      check_ca_equal(expect, got)
  
imports: import pandas
  import pytest
  import cudf
  from cudf.core.column_accessor import ColumnAccessor
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 17 for calling a global function with example usage: test_select_by_index_multiindex() without return types