code: def version_tuple(version, prefix=2):
      return tuple(map(int, version.split(".")[:prefix]))
  
imports: import collections.abc
  import logging
  import numpy
  import scipy.sparse
  from scipy.stats import halfnorm
  from gensim import interfaces
  from gensim import matutils
  from gensim import utils
  from gensim.interfaces import TransformedCorpus
  from gensim.models import basemodel, CoherenceModel
  from gensim.models.nmf_pgd import solve_h
label_desc: Use image node_id 1 for calling a global function with example usage: version_tuple(version, prefix) and returns: tuple