code: def _get_shape(file_):
      """Return a tuple with (number of entries, vector dimensions). Handle
      both word2vec/FastText format, which has a header with this, or GloVe's
      format, which doesn't."""
      first_line = next(file_).replace("\ufeff", "").split()
      if len(first_line) == 2:
          return tuple(int(size) for size in first_line), file_
      count = 1
      for line in file_:
          count += 1
      file_.seek(0)
      shape = (count, len(first_line) - 1)
      return shape, file_
  
file_path: sense2vec/scripts/05_export.py
imports: from collections import OrderedDict, defaultdict
  from sense2vec import Sense2Vec
  from sense2vec.util import split_key, cosine_similarity
  from pathlib import Path
  from wasabi import msg
  import numpy
  import typer
label_desc: Use image node_id 2 for calling a global function with example usage: _get_shape(file_) and returns: shape,  file_, tuple,  file_