code: def isglove(filepath):
      
  
      with ensure_open(filepath, 'r') as f:
          header_line = f.readline()
          vector_line = f.readline()
      try:
          num_vectors, num_dim = header_line.split()
          return int(num_dim)
      except (ValueError, TypeError):
          pass
      vector = vector_line.split()[1:]
      if len(vector) % 10:
          print(vector)
          print(len(vector) % 10)
          return False
      try:
          vector = np.array([float(x) for x in vector])
      except (ValueError, TypeError):
          return False
      if np.all(np.abs(vector) < 12.):
          return len(vector)
      return False
docs: Get the first word vector in a GloVE file and return its dimensionality or False if not a vector
  
      >>> isglove(os.path.join(DATA_PATH, 'cats_and_dogs.txt'))
      False