code: def test_rpc_base_random_key(device_key):
      random.seed(0)
      key = base.random_key(device_key)
      assert key.startswith(device_key)
      res_device_key, _ = base.split_random_key(key)
      assert device_key == res_device_key
      # start with seed 0 as well, but use cmap arg(a conflict map)
      # to generate another unique random key
      random.seed(0)
      new_key = base.random_key(device_key, cmap={key})
      assert key != new_key
      assert new_key.startswith(device_key)
      res_device_key2, _ = base.split_random_key(new_key)
      assert device_key == res_device_key2
  
imports: from tvm.rpc import base
  import pytest
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: test_rpc_base_random_key(device_key) without return types