<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ListAssets(logdir, plugin_name):
 """List all the assets that are available for given plugin in a logdir. Args: logdir: A directory that was created by a TensorFlow summary.FileWriter. plugin_name: A string name of a plugin to list assets for. Returns: A string list of available plugin assets. If the plugin subdirectory does not exist (either because the logdir doesn't exist, or because the plugin didn't register) an empty list is returned. """

  plugin_dir = PluginDirectory(logdir, plugin_name)
  try:
    # Strip trailing slashes, which listdir() includes for some filesystems.
    return [x.rstrip('/') for x in tf.io.gfile.listdir(plugin_dir)]
  except tf.errors.NotFoundError:
    return []