code: def test_widget_delete_client(self, rename_libraries):
      import perspective
  
      assert perspective.is_libpsp() is False
      data = {"a": np.arange(0, 50)}
      widget = perspective.PerspectiveWidget(data)
      mocked_post = partial(mock_post, assert_msg={"cmd": "delete"})
      widget.delete()
      widget.post = MethodType(mocked_post, widget)
  
imports: import os
  import pytest
  import sys
  import numpy
  import pandas
  from datetime import date, datetime
  from functools import partial
  from types import MethodType
label_desc: Use image node_id 23 for calling the TestClient obj's underlying member method code with example usage: obj.test_widget_delete_client(rename_libraries) without return types