code: def _is_scalar_value(value):
      if value.HasField("metadata") and value.metadata.HasField(
          "plugin_data"
      ):
          plugin_data = value.metadata.plugin_data
          return plugin_data.plugin_name == _SCALAR_PLUGIN_NAME
  
      return False
  
imports: import functools
  import inspect
  import itertools
  import json
  import os
  import tempfile
  from typing import Dict
  from absl import flags, logging
  from absl.testing import absltest
  from tensorboard.backend.event_processing import directory_watcher, event_file_loader, io_wrapper
  from tensorboard.summary import v1
  from tensorboard.util import tensor_util
  from flax import io
label_desc: Use image node_id 2 for calling a global function with example usage: _is_scalar_value(value) and returns: False, unknown