code: def sample(generator, step, mean_style, n_sample, device):
      image = generator(
          nd.random.randn(n_sample, 512, ctx=device),
          step,
          1,
          mean_style,
          0.7,
      )
  
      return image
  
file_path: gluon-cv/scripts/gan/stylegan/demo_stylegan.py
imports: import argparse
  import math
  import os
  import numpy
  from tqdm import tqdm
  from PIL import Image
  import mxnet
  import mxnet.ndarray
  from model import StyledGenerator
label_desc: Use image node_id 2 for calling a global function with example usage: sample(generator, step, mean_style, n_sample, device) and returns: image