code: def make_grid(boundary=2.0, number_grid=50, dim_latent=2):
      """Helper function making 1D or 2D grid for evaluation purpose."""
      zs = np.linspace(-boundary, boundary, number_grid)
      z_grid = []
      if dim_latent == 1:
          for x in range(number_grid):
              z_grid.append([zs[x]])
          dim_grid = 1
      else:
          for x in range(number_grid):
              for y in range(number_grid):
                  z_grid.append(
                      [0.0] * (dim_latent - 2) + [zs[x], zs[y]]
                  )
          dim_grid = 2
      z_grid = np.array(z_grid)
      return ObjectBlob(z_grid=z_grid, dim_grid=dim_grid)
  
imports: import functools
  import importlib
  import os
  from magenta.models.latent_transfer import local_mnist
  import numpy
  from PIL import Image
  import tensorflow.compat.v1
label_desc: Use image node_id 10 for calling a global function with example usage: make_grid(boundary, number_grid, dim_latent) and returns: ObjectBlob