code: def _is_batch_of_vectors(t: tf.Tensor) -> bool:
      """Checks if an input is a batch of (effectively) 1D vectors."""
      num_nontrivial_indices = 0
      for s in t.shape[1:]:
          if s > 1:
              num_nontrivial_indices += 1
          if num_nontrivial_indices > 1:
              return False
      return num_nontrivial_indices <= 1
  
file_path: privacy/tensorflow_privacy/privacy/fast_gradient_clipping/registry_functions/einsum_utils.py
imports: import enum
  import itertools
  import os
  import re
  from typing import Optional
  import tensorflow
  from tensorflow_privacy.privacy.fast_gradient_clipping import common_manip_utils
label_desc: Use image node_id 1 for calling a global function with example usage: _is_batch_of_vectors(t) and returns: unknown, False