def ogrn(type="<STR_LIT>"):
if (type in TYPES) and type == '<STR_LIT>':<EOL><INDENT>return person_ogrn()<EOL><DEDENT>else:<EOL><INDENT>return legal_ogrn()<EOL><DEDENT>
Return a random government registration ID for either a person or a company.

    Further information on the topic can be found in [1] (in russian).
    [1]: https://ru.wikipedia.org/wiki/Основной_государственный_регистрационный_номер