code: def main(argv):
      # wandb.init(entity="wandb", project="new-plots-test-5")
      wandb.init(name=pathlib.Path(__file__).stem)
      data = [
          [i, random.random() + math.sin(i / 10)] for i in range(100)
      ]
      table = wandb.Table(data=data, columns=["step", "height"])
      line_plot = wandb.plot.line(
          table, x="step", y="height", title="what a great line plot"
      )
      xs = []
      ys = []
      keys = [f"y_{i}" for i in range(4)]
      xs.append([j for j in range(100)])
      xs.append([j for j in range(100)])
      xs.append([2 * j for j in range(50)])
      xs.append([2 * j for j in range(50)])
  
      ys.append(
          [random.random() + math.sin(i / 10) for i in range(100)]
      )
      ys.append([math.sin(i / 10) for i in range(100)])
      ys.append([math.cos(i / 10) for i in range(50)])
      ys.append([random.random() - math.cos(i / 10) for i in range(50)])
  
      line_series_plot = wandb.plot.line_series(
          xs, ys, keys, "Get serial With keys now!", "step"
      )
      line_series_plot_no_title_no_keys = wandb.plot.line_series(
          xs, ys, xname="step"
      )
  
      line_series_singular_x_array = wandb.plot.line_series(
          [i for i in range(100)],
          ys,
          title="Get serial with one x",
          xname="step",
      )
  
      histogram = wandb.plot.histogram(
          table, value="height", title="my-histo"
      )
      scatter = wandb.plot.scatter(
          table, x="step", y="height", title="scatter!"
      )
  
      bar_table = wandb.Table(
          data=[
              ["car", random.random()],
              ["bus", random.random()],
              ["road", random.random()],
              ["person", random.random()],
              ["cyclist", random.random()],
              ["tree", random.random()],
              ["sky", random.random()],
          ],
          columns=["class", "acc"],
      )
      bar = wandb.plot.bar(
          bar_table, label="class", value="acc", title="bar"
      )
  
      wandb.log(
          {
              "line1": line_plot,
              "line_series1": line_series_plot,
              "line_series_no_title_no_keys": line_series_plot_no_title_no_keys,
              "line_series_single_x": line_series_singular_x_array,
              "histogram1": histogram,
              "scatter1": scatter,
              "bar1": bar,
          }
      )
  
imports: import math
  import pathlib
  import random
  import sys
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: main(argv) without return types