code: def test__pickle(self) -> None:
      client = LightlySwaggerRESTClientObject(
          configuration=Configuration(), timeout=5
      )
      new_client = pickle.loads(pickle.dumps(client))
      expected = {
          # "configuration", ignore because some parts of configuration are recreated on unpickling
          "maxsize": None,
          # "pool_manager", ignore because pool_manager is recreated on unpickling
          "pools_size": 4,
          "timeout": 5,
      }
  
      # Check that all expected values are set except the ignored ones.
      assert set(expected.keys()) == set(client.__dict__.keys()) - {
          "configuration",
          "pool_manager",
      }
      # Check that new client values are equal to expected values.
      assert all(
          new_client.__dict__[key] == value
          for key, value in expected.items()
      )
  
      # Extra assertions for attributes ignored in the tests above.
      assert isinstance(
          new_client.__dict__["configuration"], Configuration
      )
      assert isinstance(
          new_client.__dict__["pool_manager"], PoolManager
      )
  
file_path: lightly/tests/api/test_swagger_rest_client.py
imports: import pickle
  from pytest_mock import MockerFixture
  from urllib3 import PoolManager, Timeout
  from lightly.api.swagger_rest_client import LightlySwaggerRESTClientObject
  from lightly.openapi_generated.swagger_client.configuration import Configuration
label_desc: Use image node_id 1 for calling the TestLightlySwaggerRESTClientObject obj's underlying member method code with example usage: obj.test__pickle() without return types