code: def test_pat016_patch_slice():
      p = Patch()
  
      with pytest.raises(TypeError):
          p[2::1] = "sliced"
  
      with pytest.raises(TypeError):
          p[2:3]["nested"] = "nest-slice"
  
      with pytest.raises(TypeError):
          del p[1:]
  
imports: import json
  import pytest
  from dash import Patch
  from dash._utils import to_json
label_desc: Use image node_id 17 for calling a global function with example usage: test_pat016_patch_slice() without return types