code: def test_series_isin():
      # one chunk in multiple chunks
      a = from_pandas_series(
          pd.Series([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), chunk_size=10
      )
      b = from_pandas_series(pd.Series([2, 1, 9, 3]), chunk_size=2)
  
      r = tile(a.isin(b))
      for i, c in enumerate(r.chunks):
          assert c.index == (i,)
          assert c.dtype == np.dtype("bool")
          assert c.shape == (10,)
          assert len(c.op.inputs) == 2
          assert c.op.output_types[0] == OutputType.series
          assert c.op.inputs[0].index == (i,)
          assert c.op.inputs[0].shape == (10,)
          assert c.op.inputs[1].index == (0,)
          assert c.op.inputs[1].shape == (10,)
  
      # multiple chunk in one chunks
      a = from_pandas_series(
          pd.Series([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), chunk_size=5
      )
      b = from_pandas_series(pd.Series([2, 1, 9, 3]), chunk_size=4)
  
      r = tile(a.isin(b))
      for i, c in enumerate(r.chunks):
          assert c.index == (i,)
          assert c.dtype == np.dtype("bool")
          assert c.shape == (5,)
          assert len(c.op.inputs) == 2
          assert c.op.output_types[0] == OutputType.series
          assert c.op.inputs[0].index == (i,)
          assert c.op.inputs[0].shape == (5,)
          assert c.op.inputs[1].index == (0,)
          assert c.op.inputs[1].shape == (4,)
  
      # multiple chunk in multiple chunks
      a = from_pandas_series(
          pd.Series([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), chunk_size=5
      )
      b = from_pandas_series(pd.Series([2, 1, 9, 3]), chunk_size=2)
  
      r = tile(a.isin(b))
      for i, c in enumerate(r.chunks):
          assert c.index == (i,)
          assert c.dtype == np.dtype("bool")
          assert c.shape == (5,)
          assert len(c.op.inputs) == 2
          assert c.op.output_types[0] == OutputType.series
          assert c.op.inputs[0].index == (i,)
          assert c.op.inputs[0].shape == (5,)
          assert c.op.inputs[1].index == (i,)
          assert c.op.inputs[1].shape == (5,)
  
      with pytest.raises(TypeError):
          _ = a.isin("sth")
  
      with pytest.raises(TypeError):
          _ = a.to_frame().isin("sth")
  
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 10 for calling a global function with example usage: test_series_isin() without return types