code: def test_invalid_k():
      with pytest.raises(TypeError, match="k: expected int, found str"):
          SortPooling(k="false")
  
      with pytest.raises(
          ValueError, match="k: expected integer >= 1, found 0"
      ):
          SortPooling(k=0)
  
file_path: stellargraph/tests/layer/test_sort_pooling.py
imports: import pytest
  import numpy
  from stellargraph.layer.sort_pooling import SortPooling
label_desc: Use image node_id 6 for calling a global function with example usage: test_invalid_k() without return types