class_docstr: InputSeries.
class_docstr_tok: ["InputSeries","."]
code: def test_several_possible_types_correct_type(self):
      @_types.InputSeries([_types.DataFrame, _types.VectorSeries])
      def f(x):
          pass
  
      try:
          f(
              pd.DataFrame(
                  [[1, 2, 3]],
                  columns=["a", "b", "c"],
                  dtype="Sparse",
              )
          )
  
          f(pd.Series([[1.0, 2.0]]))
  
      except TypeError:
          self.fail("Failed although input type is correct.")
  
file_path: texthero/tests/test_types.py
imports: import pandas
  import numpy
  from .None import PandasTestCase
  import doctest
  import unittest
  from texthero import _types
label_desc: Use image node_id 10 for calling the TestTypes obj's underlying member method code with example usage: obj.test_several_possible_types_correct_type() without return types