code: def test_rp_workspace_mapping(client: _client.Determined) -> None:
      workspace_names = ["Workspace A", "Workspace B"]
      overwrite_workspace_names = ["Workspace C", "Workspace D"]
      rp_names = ["default"]  # TODO: not sure how to add more rp
      workspace_ids = []
  
      for wn in workspace_names + overwrite_workspace_names:
          req = bindings.v1PostWorkspaceRequest(name=wn)
          workspace_ids.append(
              bindings.post_PostWorkspace(
                  session=client._session, body=req
              ).workspace.id
          )
  
      try:
          with pytest.raises(
              errors.APIException,
              match="default resource pool default cannot be bound to any workspace",
          ):
              rp = resource_pool.ResourcePool(
                  client._session, rp_names[0]
              )
              rp.add_bindings(workspace_names)
      finally:
          for wid in workspace_ids:
              bindings.delete_DeleteWorkspace(
                  session=client._session, id=wid
              )
  
file_path: determined/e2e_tests/tests/test_sdk.py
imports: import os
  import random
  import shutil
  import tempfile
  import time
  import pytest
  from determined.common import util
  from determined.common.api import bindings, errors
  from determined.common.experimental import resource_pool
  from determined.common.experimental.metrics import TrialMetrics
  from determined.experimental import client
  from tests import config
label_desc: Use image node_id 8 for calling a global function with example usage: test_rp_workspace_mapping(client) without return types