code: def major_version(version):
      versions = version.split(".")
      major = int(versions[0])
      _LOGGER.info("Tesseract major version %s", major)
      return major
  
imports: import codecs
  import errno
  import glob
  import itertools
  import logging
  import os
  import re
  import subprocess
  import sys
  from os.path import abspath, dirname
  from os.path import join
  from os.path import split
  from setuptools import setup
  from setuptools.command.build_ext import build_ext
  from setuptools.extension import Extension
label_desc: Use image node_id 3 for calling a global function with example usage: major_version(version) and returns: major