code: def test_drop(setup):
      # 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=3)
  
      columns = ["c2", "c4", "c5", "c6"]
      index = [3, 6, 7]
      r = df.drop(columns=columns, index=index)
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.drop(columns=columns, index=index)
      )
  
      idx_series = from_pandas_series(pd.Series(index))
      r = df.drop(idx_series)
      pd.testing.assert_frame_equal(
          r.execute().fetch(), raw.drop(pd.Series(index))
      )
  
      df.drop(columns, axis=1, inplace=True)
      pd.testing.assert_frame_equal(
          df.execute().fetch(), raw.drop(columns, axis=1)
      )
  
      del df["c3"]
      pd.testing.assert_frame_equal(
          df.execute().fetch(), raw.drop(columns + ["c3"], axis=1)
      )
  
      ps = df.pop("c8")
      pd.testing.assert_frame_equal(
          df.execute().fetch(), raw.drop(columns + ["c3", "c8"], axis=1)
      )
      pd.testing.assert_series_equal(ps.execute().fetch(), raw["c8"])
  
      # test series drop
      raw = pd.Series(rs.randint(1000, size=(20,)))
  
      series = from_pandas_series(raw, chunk_size=3)
  
      r = series.drop(index=index)
      pd.testing.assert_series_equal(
          r.execute().fetch(), raw.drop(index=index)
      )
  
      # test index drop
      ser = pd.Series(range(20))
      rs.shuffle(ser)
      raw = pd.Index(ser)
  
      idx = from_pandas_index(raw)
  
      r = idx.drop(index)
      pd.testing.assert_index_equal(
          r.execute().fetch(), raw.drop(index)
      )
  
imports: import random
  from collections import OrderedDict
  import numpy
  import pandas
  import pytest
  import mars
  from ....config import options, option_context
  from ....dataframe import DataFrame, Series
  from ....tensor import arange, tensor
  from ....tensor.random import rand
  from ....tests.core import require_cudf
  from ....utils import lazy_import, pd_release_version, no_default
  from ...None import eval, cut, qcut, get_dummies
  from ...core import DATAFRAME_OR_SERIES_TYPE
  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
  from ..bloom_filter import filter_by_bloom_filter
  from ..shift import _enable_no_default, _with_column_freq_bug
  from ..to_numeric import to_numeric
  from ..rebalance import DataFrameRebalance
label_desc: Use image node_id 26 for calling a global function with example usage: test_drop(setup) without return types