<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_python_matlab_architecture(bits, lib_dir):
 """Make sure we can find corresponding installation of Python and MATLAB."""

    if not os.path.isdir(lib_dir):
        raise RuntimeError("It seem that you are using {bits} version of Python, but there's no matching MATLAB installation in {lib_dir}.".format(bits=bits, lib_dir=lib_dir))