class_docstr: CustomScalars Plugin for TensorBoard.
docstr: Tries to get the scalars plugin.
  
  Returns:
    The scalars plugin. Or None if it is not yet registered.
docstr_tok: ["Tries","to","get","the","scalars","plugin",".","Returns",":","The","scalars","plugin",".","Or","None","if","it","is","not","yet","registered","."]
code: def _get_scalars_plugin(self):
      """Tries to get the scalars plugin.
  
      Returns:
        The scalars plugin. Or None if it is not yet registered.
      """
      if scalars_metadata.PLUGIN_NAME in self._plugin_name_to_instance:
          # The plugin is registered.
          return self._plugin_name_to_instance[
              scalars_metadata.PLUGIN_NAME
          ]
      # The plugin is not yet registered.
      return None
  
imports: import re
  from google.protobuf import json_format
  from werkzeug import wrappers
  from tensorboard import plugin_util
  from tensorboard.backend import http_util
  from tensorboard.compat import tf
  from tensorboard.data import provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.custom_scalar import layout_pb2
  from tensorboard.plugins.custom_scalar import metadata
  from tensorboard.plugins.scalar import metadata
  from tensorboard.plugins.scalar import scalars_plugin
label_desc: Use image node_id 2 for calling the CustomScalarsPlugin obj's underlying member method code with example usage: obj._get_scalars_plugin() and returns: None, self