code: def single_item_workspaces() -> bindings.v1GetWorkspacesResponse:
      sample_workspace = api_responses.sample_get_workspace().workspace
      single_item_pagination = bindings.v1Pagination(
          endIndex=1, startIndex=0, total=1
      )
      return bindings.v1GetWorkspacesResponse(
          workspaces=[sample_workspace],
          pagination=single_item_pagination,
      )
  
file_path: determined/harness/tests/determined/common/experimental/test_workspace.py
imports: import pytest
  import responses
  from determined.common import api
  from determined.common.api import bindings, errors
  from determined.common.experimental import workspace
  from tests.fixtures import api_responses
label_desc: Use image node_id 2 for calling a global function with example usage: single_item_workspaces() and returns: bindings