Return the major component of a version string.
version (str) – Version string to parse.
Major version component.
str