code: def _zip_with_scalars(args):
    
    zipped = []
    for arg in args:
      if isinstance(arg, prettytensor.PrettyTensor):
        zipped.append(arg if arg.is_sequence() else itertools.repeat(arg))
      elif (isinstance(arg, collections.Sequence) and
            not isinstance(arg, tf.compat.bytes_or_text_types)):
        zipped.append(arg)
      else:
        zipped.append(itertools.repeat(arg))
    assert len(args) == len(zipped)
    return zip(*zipped)
docs: Zips across args in order and replaces non-iterables with repeats.