def get_version(form='<STR_LIT>'):
versions = {}<EOL>branch = "<STR_LIT>" % (VERSION[<NUM_LIT:0>], VERSION[<NUM_LIT:1>])<EOL>tertiary = VERSION[<NUM_LIT:2>]<EOL>type_ = VERSION[<NUM_LIT:3>]<EOL>type_num = VERSION[<NUM_LIT:4>]<EOL>versions["<STR_LIT>"] = branch<EOL>v = versions["<STR_LIT>"]<EOL>if tertiary:<EOL><INDENT>versions["<STR_LIT>"] = "<STR_LIT:.>" + str(tertiary)<EOL>v += versions["<STR_LIT>"]<EOL><DEDENT>versions['<STR_LIT>'] = v<EOL>if form is "<STR_LIT>":<EOL><INDENT>return v<EOL><DEDENT>v += "<STR_LIT:U+0020>" + type_ + "<STR_LIT:U+0020>" + str(type_num)<EOL>versions["<STR_LIT>"] = v<EOL>if form is "<STR_LIT>":<EOL><INDENT>return v<EOL><DEDENT>v += "<STR_LIT>" + git_sha()<EOL>versions["<STR_LIT>"] = v<EOL>if form is "<STR_LIT>":<EOL><INDENT>return v<EOL><DEDENT>if form is "<STR_LIT:all>":<EOL><INDENT>return versions<EOL><DEDENT>
Returns the version string.

Takes single argument ``form``, which should be one of the following
strings:

* ``short`` Returns major + minor branch version string with the format of
B.b.t.
* ``normal`` Returns human readable version string with the format of 
B.b.t _type type_num.
* ``verbose`` Returns a verbose version string with the format of
B.b.t _type type_num@git_sha
* ``all`` Returns a dict of all versions.