def METHOD_NAME(self, event):
    if isinstance(event, event_pb2.Event):
        tf_event = tf.compat.v1.Event.FromString(event.SerializeToString())
    else:
        tf_event = event
        if not isinstance(event, bytes):
            logger.error(
                "Added TensorFlow event proto. "
                "Please prefer TensorBoard copy of the proto"
            )
    super().METHOD_NAME(tf_event)