code: def assign_group_role(
      session: api.Session,
      group: str,
      role: str,
      workspace: Optional[str],
  ) -> None:
      group_assign = api.create_group_assignment_request(
          session, group=group, role=role, workspace=workspace
      )
      req = bindings.v1AssignRolesRequest(
          userRoleAssignments=[], groupRoleAssignments=group_assign
      )
      bindings.post_AssignRoles(session, body=req)
  
imports: import uuid
  from typing import Callable, Optional, Sequence, TypeVar
  import pytest
  from determined.common import api
  from determined.common.api import authentication, bindings, certs, errors
  from tests import config
label_desc: Use image node_id 5 for calling a global function with example usage: assign_group_role(session, group, role, workspace) without return types