code: def setUp(self):
      super().setUp()
      logdir = os.path.join(self.get_temp_dir(), "logdir")
  
      # Generate data.
      pr_curve_demo.run_all(
          logdir=logdir, steps=3, thresholds=5, verbose=False
      )
  
      # Create a multiplexer for reading the data we just wrote.
      multiplexer = event_multiplexer.EventMultiplexer()
      multiplexer.AddRunsFromDirectory(logdir)
      multiplexer.Reload()
      provider = data_provider.MultiplexerDataProvider(
          multiplexer, logdir
      )
  
      context = base_plugin.TBContext(
          logdir=logdir, data_provider=provider
      )
      self.plugin = pr_curves_plugin.PrCurvesPlugin(context)
  
imports: import collections.abc
  import functools
  import os.path
  import numpy
  import tensorflow
  from tensorboard import context
  from tensorboard.backend.event_processing import plugin_event_multiplexer
  from tensorboard.backend.event_processing import data_provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.pr_curve import pr_curve_demo
  from tensorboard.plugins.pr_curve import pr_curves_plugin
label_desc: Use image node_id 1 for calling the PrCurvesPluginTest obj's underlying member method code with example usage: obj.setUp() without return types