def METHOD_NAME(build_code):
    # Taken from `ReleaseModelManager._convert_build_code_to_build_number`
    build_number = None
    if build_code is not None:
        try:
            build_code_as_int = int(build_code)
            if validate_bigint(build_code_as_int):
                build_number = build_code_as_int
        except ValueError:
            pass
    return build_number