code: def __init__(self, name="categorical_true_positives", **kwargs):
      super().__init__(name=name, **kwargs)
      self.true_positives = self.add_variable(
          shape=(), name="ctp", initializer="zeros"
      )
  
imports: import torch
  import tensorflow
  import os
  import numpy
  import keras
  from keras import layers
  from keras import ops
label_desc: Use image node_id 1 to create a new CategoricalTruePositives object from inherited base classes: keras.metrics with example: obj = CategoricalTruePositives(name)