code: def test_loc_use_iloc():
      raw = pd.DataFrame(
          [[1, 3, 3], [4, 2, 6], [7, 8, 9]], columns=["x", "y", "z"]
      )
      df = md.DataFrame(raw, chunk_size=2)
  
      assert isinstance(df.loc[:3].op, DataFrameIlocGetItem)
      assert isinstance(df.loc[1:3].op, DataFrameIlocGetItem)
      assert isinstance(df.loc[1].op, DataFrameIlocGetItem)
      # negative
      assert isinstance(df.loc[:-3].op, DataFrameLocGetItem)
      with pytest.raises(KeyError):
          _ = df.loc[-3]
      # index 1 not None
      assert isinstance(df.loc[:3, :"y"].op, DataFrameLocGetItem)
      # index 1 not slice
      assert isinstance(
          df.loc[:3, [True, False, True]].op, DataFrameLocGetItem
      )
      assert isinstance(
          df.loc[[True, False, True]].op, DataFrameLocGetItem
      )
  
      raw2 = raw.copy()
      raw2.index = pd.RangeIndex(1, 4)
      df2 = md.DataFrame(raw2, chunk_size=2)
  
      assert isinstance(df2.loc[:3].op, DataFrameLocGetItem)
      assert isinstance(df2.loc["a3":].op, DataFrameLocGetItem)
  
      raw2 = raw.copy()
      raw2.index = [f"a{i}" for i in range(3)]
      df2 = md.DataFrame(raw2, chunk_size=2)
  
      assert isinstance(df2.loc[:3].op, DataFrameLocGetItem)
  
imports: import numpy
  import pandas
  import pytest
  from ....None import dataframe
  from ....None import tensor
  from ....core import tile
  from ....tensor.core import TENSOR_CHUNK_TYPE, TENSOR_TYPE, Tensor
  from ...core import SERIES_CHUNK_TYPE, SERIES_TYPE, Series, DATAFRAME_TYPE, DataFrame, DATAFRAME_CHUNK_TYPE
  from ...datasource.from_tensor import dataframe_from_tensor
  from ..iloc import DataFrameIlocGetItem, DataFrameIlocSetItem, IndexingError, HeadTailOptimizedOperandMixin
  from ..loc import DataFrameLocGetItem
label_desc: Use image node_id 5 for calling a global function with example usage: test_loc_use_iloc() without return types