code: def is_path_safe(path):
      """Returns the result depending on the plugin's static file handler."""
      example_plugin = plugin.ExampleRawScalarsPlugin(
          base_plugin.TBContext()
      )
      serve_static_file = example_plugin._serve_static_file
  
      client = test.Client(serve_static_file, wrappers.Response)
      response = client.get(plugin._PLUGIN_DIRECTORY_PATH_PART + path)
      return response.status_code == 200
  
file_path: tensorboard/tensorboard/examples/plugins/example_raw_scalars/test.py
imports: import ntpath
  import posixpath
  import unittest
  from unittest import mock
  from werkzeug import test
  from werkzeug import wrappers
  from tensorboard.plugins import base_plugin
  from tensorboard.examples.plugins.example_raw_scalars.tensorboard_plugin_example_raw_scalars import plugin
label_desc: Use image node_id 1 for calling a global function with example usage: is_path_safe(path) and returns: unknown