code: def test_okta_create_user() -> None:
      username = api_utils.get_random_string() + "@okta.example.com"
      given_name = api_utils.get_random_string()
      family_name = api_utils.get_random_string()
  
      user_req = {
          "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
          "userName": username,
          "name": {"givenName": given_name, "familyName": family_name},
          "emails": [
              {
                  "primary": True,
                  "value": api_utils.get_random_string()
                  + "@okta.example.com",
                  "type": "work",
              }
          ],
          "displayName": api_utils.get_random_string(),
          "externalId": api_utils.get_random_string(),
          "groups": [],
          "active": True,
      }
  
      r = requests.post(
          make_scim_url("/Users"),
          auth=(conf.SCIM_USERNAME, conf.SCIM_PASSWORD),
          json=user_req,
      )
  
      assert r.status_code == 201
  
      resp = r.json()
  
      user_id = resp["id"]
      user_loc = make_scim_url(f"/Users/{user_id}")
  
      assert resp["active"] is True
      assert len(user_id) > 0
      assert resp["name"]["familyName"] == family_name
      assert resp["name"]["givenName"] == given_name
      assert resp["userName"] == username
      assert (
          "urn:ietf:params:scim:schemas:core:2.0:User"
          in resp["schemas"]
      )
      assert resp["meta"]["location"] == user_loc
  
      r = requests.get(
          make_scim_url(f"/Users/{user_id}"),
          auth=(conf.SCIM_USERNAME, conf.SCIM_PASSWORD),
      )
  
      assert r.status_code == 200
  
      resp = r.json()
  
      assert resp["name"]["familyName"] == family_name
      assert resp["name"]["givenName"] == given_name
      assert resp["userName"] == username
      assert resp["meta"]["location"] == user_loc
  
      patch_req = {
          "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
          "Operations": [{"op": "replace", "value": {"active": False}}],
      }
  
      r = requests.patch(
          make_scim_url(f"/Users/{user_id}"),
          auth=(conf.SCIM_USERNAME, conf.SCIM_PASSWORD),
          json=patch_req,
      )
  
      assert r.status_code == 200
  
      resp = r.json()
  
      assert resp["active"] is False
  
file_path: determined/e2e_tests/tests/cluster/test_scim.py
imports: import numbers
  from urllib import parse
  import pytest
  import requests
  from tests import api_utils
  from tests import config
label_desc: Use image node_id 7 for calling a global function with example usage: test_okta_create_user() without return types