code: def RGS_unrank(rank, m):
      """
      Gives the unranked restricted growth string for a given
      superset size.
  
      Examples
      ========
  
      >>> from sympy.combinatorics.partitions import RGS_unrank
      >>> RGS_unrank(14, 4)
      [0, 1, 2, 3]
      >>> RGS_unrank(0, 4)
      [0, 0, 0, 0]
      """
      if m < 1:
          raise ValueError("The superset size must be >= 1")
      if rank < 0 or RGS_enum(m) <= rank:
          raise ValueError("Invalid arguments")
  
      L = [1] * (m + 1)
      j = 1
      D = RGS_generalized(m)
      for i in range(2, m + 1):
          v = D[m - i, j]
          cr = j * v
          if cr <= rank:
              L[i] = j + 1
              rank -= cr
              j += 1
          else:
              L[i] = int(rank / v + 1)
              rank %= v
      return [x - 1 for x in L[1:]]
  
imports: from sympy.core import Basic, Dict, sympify, Tuple
  from sympy.core.numbers import Integer
  from sympy.core.sorting import default_sort_key
  from sympy.core.sympify import _sympify
  from sympy.functions.combinatorial.numbers import bell
  from sympy.matrices import zeros
  from sympy.sets.sets import FiniteSet, Union
  from sympy.utilities.iterables import flatten, group
  from sympy.utilities.misc import as_int
  from collections import defaultdict
label_desc: Use image node_id 4 for calling a global function with example usage: RGS_unrank(rank, m) and returns: unknown