code: def to_scalar(self, tensor):
      return tensor.numpy()
  
imports: from ..core import BaseINCMetric
  import tensorflow
label_desc: Use image node_id 3 for calling the TensorflowINCMetric obj's underlying member method code with example usage: obj.to_scalar(tensor) and returns: tensor