code: def ConcatWith(x, tensor, dim):
      """
      A wrapper around ``tf.concat`` to cooperate with :class:`LinearWrap`.
  
      Args:
          x (tf.Tensor): input
          tensor (list[tf.Tensor]): a tensor or list of tensors to concatenate with x.
              x will be at the beginning
          dim (int): the dimension along which to concatenate
  
      Returns:
          tf.Tensor: ``tf.concat([x] + tensor, dim)``
      """
      if type(tensor) != list:
          tensor = [tensor]
      return tf.concat([x] + tensor, dim)
  
label_desc: Use image node_id 1 for calling a global function with example usage: ConcatWith(x, tensor, dim) and returns: tf