code: def test_view_nulls() -> None:
      s = pl.Series("b", [1, 2, None])
      assert s.has_validity()
      with pytest.raises(AssertionError):
          s._view()
  
file_path: polars/py-polars/tests/unit/interop/test_numpy.py
imports: import numpy
  import pytest
  import polars
label_desc: Use image node_id 2 for calling a global function with example usage: test_view_nulls() without return types