code: def paretoint(avg, alpha):
      """Returns a random integer that's avg on average, following a power law.
      alpha determines the shape of the power curve. alpha has to be larger
      than 1. The closer alpha is to 1, the higher the variation of the returned
      numbers."""
      return int(
          random.paretovariate(alpha) * avg / (alpha / (alpha - 1))
      )
  
imports: import argparse
  import contextlib
  import os
  import random
  import sys
  import ninja_syntax
label_desc: Use image node_id 1 for calling a global function with example usage: paretoint(avg, alpha) and returns: int