class_docstr: Base class for ExtensionDtype classes
class_docstr_tok: ["Base","class","for","ExtensionDtype","classes"]
code: def test_construct_from_string_another_type_raises(self, dtype):
      msg = f"Cannot construct a '{type(dtype).__name__}' from 'another_type'"
      with pytest.raises(TypeError, match=msg):
          type(dtype).construct_from_string("another_type")
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.api.types import infer_dtype, is_object_dtype, is_string_dtype
label_desc: Use image node_id 18 for calling the BaseDtypeTests obj's underlying member method code with example usage: obj.test_construct_from_string_another_type_raises(dtype) without return types