code: def get_ptcloud_img(ptcloud):
      fig = plt.figure(figsize=(8, 8))
  
      x, z, y = ptcloud.transpose(1, 0)
      ax = fig.gca(projection=Axes3D.name, adjustable="box")
      ax.axis("off")
      # ax.axis('scaled')
      ax.view_init(30, 45)
      max, min = np.max(ptcloud), np.min(ptcloud)
      ax.set_xbound(min, max)
      ax.set_ybound(min, max)
      ax.set_zbound(min, max)
      ax.scatter(x, y, z, zdir="z", c=x, cmap="jet")
  
      fig.canvas.draw()
      img = np.fromstring(
          fig.canvas.tostring_rgb(), dtype=np.uint8, sep=""
      )
      img = img.reshape(fig.canvas.get_width_height()[::-1] + (3,))
      return img
  
imports: import numpy
  import matplotlib.pyplot
  from mpl_toolkits.mplot3d import Axes3D
  import random
  import torch
  import torch.nn
  import torch.nn.functional
  import os
  from collections import abc
label_desc: Use image node_id 10 for calling a global function with example usage: get_ptcloud_img(ptcloud) and returns: img