code: def new_tensor(name, ndim, dtype):
      """Creates a placeholder :class:`tf.Tensor` with the specified arguments.
  
      Args:
          name (string): Name of the tf.Tensor.
          ndim (int): Number of dimensions of the tf.Tensor.
          dtype (type): Data type of the tf.Tensor's contents.
  
      Returns:
          tf.Tensor: Placeholder tensor.
      """
      return tf.compat.v1.placeholder(
          dtype=dtype, shape=[None] * ndim, name=name
      )
  
imports: import collections
  import numpy
  import tensorflow
label_desc: Use image node_id 10 for calling a global function with example usage: new_tensor(name, ndim, dtype) and returns: tf