code: def major_version(v):
      return ".".join(v.split(".")[:2])
  
file_path: pysc2/pysc2/tests/versions_test.py
imports: from absl import logging
  from absl.testing import absltest
  from pysc2 import maps
  from pysc2 import run_configs
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: major_version(v) and returns: str