code: def permutation_generator(request):
      """
      Generates a list containing a random permutation.
      """
  
      perm_len = request.param
      rng = np.random.default_rng()
      return rng.permutation(perm_len).tolist()
  
imports: import inspect
  import os
  import pytest
  import time
  from itertools import product
  from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  from alibi.utils.distributed import DistributedExplainer, PoolCollection, ResourceError, invert_permutation, concatenate_minibatches
label_desc: Use image node_id 7 for calling a global function with example usage: permutation_generator(request) and returns: rng