code: def all_operations(
      determined_obj: Determined,
      test_workspace: bindings.v1Workspace,
      checkpoint: Checkpoint,
  ) -> Tuple[model.Model, str]:
      test_model_name = get_random_string()
  
      determined_obj.create_model(
          name=test_model_name, workspace_name=test_workspace.name
      )
      model_obj = determined_obj.get_model(identifier=test_model_name)
  
      model_obj.set_description("abcde")
      model_obj = determined_obj.get_model(model_obj.name)
      assert model_obj.description == "abcde"
  
      # Register a version for the model and validate the latest.
  
      model_version = model_obj.register_version(checkpoint.uuid)
      assert model_version.model_version == 1
  
      latest_version = model_obj.get_version()
      assert latest_version is not None
      assert latest_version.checkpoint is not None
      assert latest_version.checkpoint.uuid == checkpoint.uuid
  
      # Get checkpoint (ensure you can access this through model).
      c = determined_obj.get_checkpoint(checkpoint.uuid)
      assert c.uuid == checkpoint.uuid
  
      latest_version.set_name("Test 2021")
      db_version = model_obj.get_version()
      assert db_version is not None
      assert db_version.name == "Test 2021"
  
      model_obj.move_to_workspace(workspace_name="Uncategorized")
      models = determined_obj.get_models(
          workspace_names=["Uncategorized"]
      )
      assert model_obj.name in [m.name for m in models]
      return model_obj, "Uncategorized"
  
imports: import uuid
  from typing import Any, Dict, List, Tuple
  import pytest
  from determined.common import util
  from determined.common.api import Session, authentication, bindings, errors
  from determined.common.api.bindings import experimentv1State
  from determined.common.experimental import model
  from determined.experimental import Checkpoint, Determined
  from determined.experimental import client
  from tests import api_utils
  from tests import config
  from tests import experiment
  from tests.cluster.test_rbac import create_workspaces_with_users
  from tests.cluster.test_users import log_in_user_cli, logged_in_user
  from .test_groups import det_cmd
  from .test_workspace_org import setup_workspaces
label_desc: Use image node_id 2 for calling a global function with example usage: all_operations(determined_obj, test_workspace, checkpoint) and returns: model_obj,  str