code: def gen_unique_vector(size, dtype):
      rng = np.random.default_rng(utt.fetch_seed())
      # generate a randomized vector with unique elements
      retval = np.arange(size) * 3.0 + rng.uniform(-1.0, 1.0)
      return (retval[rng.permutation(size)] - size * 1.5).astype(dtype)
  
imports: from functools import reduce
  from itertools import chain, product
  import numpy
  import pytest
  import pytensor
  from pytensor.compile.mode import Mode
  from pytensor.tensor.sort import ArgSortOp, SortOp, TopKOp, argsort, argtopk, sort, topk, topk_and_argtopk
  from pytensor.tensor.type import dmatrix, dvector, float_dtypes, integer_dtypes, lscalar, matrix, scalar, tensor, vector
  from tests import unittest_tools
label_desc: Use image node_id 1 for calling a global function with example usage: gen_unique_vector(size, dtype) and returns: unknown