code: def test_drop():
      # test dataframe drop
      rs = np.random.RandomState(0)
      raw = pd.DataFrame(
          rs.randint(1000, size=(20, 8)),
          columns=["c" + str(i + 1) for i in range(8)],
      )
  
      df = from_pandas_df(raw, chunk_size=8)
  
      with pytest.raises(KeyError):
          df.drop(columns=["c9"])
      with pytest.raises(NotImplementedError):
          df.drop(columns=from_pandas_series(pd.Series(["c9"])))
  
      r = df.drop(columns=["c1"])
      pd.testing.assert_index_equal(
          r.index_value.to_pandas(), raw.index
      )
  
      tiled = tile(r)
      start = 0
      for c in tiled.chunks:
          raw_index = raw.index[start : start + c.shape[0]]
          start += c.shape[0]
          pd.testing.assert_index_equal(
              raw_index, c.index_value.to_pandas()
          )
  
      df = from_pandas_df(raw, chunk_size=3)
  
      columns = ["c2", "c4", "c5", "c6"]
      index = [3, 6, 7]
      r = df.drop(columns=columns, index=index)
      assert isinstance(r, DATAFRAME_TYPE)
  
      # test series drop
      raw = pd.Series(rs.randint(1000, size=(20,)))
      series = from_pandas_series(raw, chunk_size=3)
  
      r = series.drop(index=index)
      assert isinstance(r, SERIES_TYPE)
  
      # test index drop
      ser = pd.Series(range(20))
      rs.shuffle(ser)
      raw = pd.Index(ser)
  
      idx = from_pandas_index(raw)
  
      r = idx.drop(index)
      assert isinstance(r, INDEX_TYPE)
  
imports: from typing import List, Union
  import numpy
  import pandas
  import pytest
  from ....None import opcodes
  from ....config import options, option_context
  from ....core import OutputType, tile, Tileable
  from ....core.graph import TileableGraph, TileableGraphBuilder, TileContext, ChunkGraphBuilder
  from ....core.operand import OperandStage
  from ....tensor.core import TENSOR_TYPE
  from ...None import eval, cut, get_dummies, to_numeric
  from ...core import DATAFRAME_TYPE, SERIES_TYPE, SERIES_CHUNK_TYPE, INDEX_TYPE, CATEGORICAL_TYPE, CATEGORICAL_CHUNK_TYPE, DataFrameData, SeriesData
  from ...datasource.dataframe import from_pandas
  from ...datasource.series import from_pandas
  from ...datasource.index import from_pandas
  from ..None import to_gpu, to_cpu, astype
label_desc: Use image node_id 16 for calling a global function with example usage: test_drop() without return types