docstr: Deduplicate summary names modulo layer prefix.
  
  This removes the first slash-component of each tag name: for
  instance, "foo/bar/baz" becomes "bar/baz".
  
  Args:
      summaries: A `set` of `_ObservedSummary` values.
      model_type: The model type currently being tested.
  
  Returns:
      A new `set` of `_ObservedSummary` values with layer prefixes
      removed.
docstr_tok: ["Deduplicate","summary","names","modulo","layer","prefix",".","This","removes","the","first","slash-component","of","each","tag","name",":","for","instance",",","``","foo\/bar\/baz","''","becomes","``","bar\/baz","''",".","Args",":","summaries",":","A","`","set","`","of","`","_ObservedSummary","`","values",".","model_type",":","The","model","type","currently","being","tested",".","Returns",":","A","new","`","set","`","of","`","_ObservedSummary","`","values","with","layer","prefixes","removed","."]
code: def _strip_layer_names(self, summaries, model_type):
      """Deduplicate summary names modulo layer prefix.
  
      This removes the first slash-component of each tag name: for
      instance, "foo/bar/baz" becomes "bar/baz".
  
      Args:
          summaries: A `set` of `_ObservedSummary` values.
          model_type: The model type currently being tested.
  
      Returns:
          A new `set` of `_ObservedSummary` values with layer prefixes
          removed.
      """
      result = set()
      for s in summaries:
          if "/" not in s.tag:
              raise ValueError(f"tag has no layer name: {s.tag!r}")
          start_from = 2 if "subclass" in model_type else 1
          new_tag = "/".join(s.tag.split("/")[start_from:])
          result.add(s._replace(tag=new_tag))
      return result
  
imports: import collections
  import os
  import random
  import numpy
  import pytest
  import tensorflow.summary
  from tensorflow.compat.v1 import SummaryMetadata
  from tensorflow.core.util import event_pb2
  from tensorflow.python.lib.io import tf_record
  from keras import backend
  from keras import callbacks
  from keras import layers
  from keras import losses
  from keras import models
  from keras import ops
  from keras import optimizers
  from keras import testing
  from keras.optimizers import schedules
label_desc: Use image node_id 14 for calling the TestTensorBoardV2 obj's underlying member method code with example usage: obj._strip_layer_names(summaries, model_type) and returns: result