code: def simple_tf_print(tensor, places=100):
      return tf.Print(
          tensor, [tensor, tf.shape(tensor)], summarize=places
      )
  
imports: import math
  import numpy
  import random
  import scipy.sparse
  import six
  import tensorflow
  from weakref import WeakKeyDictionary
  from .input_utils import create_tensorrec_dataset_from_sparse_matrix, create_tensorrec_dataset_from_tfrecord
label_desc: Use image node_id 7 for calling a global function with example usage: simple_tf_print(tensor, places) and returns: tf