<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def build_mock_repository(conn_, file_path_list, verbose):
 """ Build the mock repository from the file_path list and fake connection instance. This allows both mof files and python files to be used to build the repository. If verbose is True, it displays the respository after it is build as mof. """

    for file_path in file_path_list:
        ext = _os.path.splitext(file_path)[1]
        if not _os.path.exists(file_path):
            raise ValueError('File name %s does not exist' % file_path)
        if ext == '.mof':
            conn_.compile_mof_file(file_path)
        elif ext == '.py':
            try:
                with open(file_path) as fp:
                    # the exec includes CONN and VERBOSE
                    globalparams = {'CONN': conn_, 'VERBOSE': verbose}
                    # pylint: disable=exec-used
                    exec(fp.read(), globalparams, None)

            except Exception as ex:
                exc_type, exc_value, exc_traceback = _sys.exc_info()
                tb = repr(traceback.format_exception(exc_type, exc_value,
                                                     exc_traceback))
                raise ValueError(
                    'Exception failure of "--mock-server" python script %r '
                    'with conn %r Exception: %r\nTraceback\n%s' %
                    (file_path, conn, ex, tb))

        else:
            raise ValueError('Invalid suffix %s on "--mock-server" '
                             'global parameter %s. Must be "py" or "mof".'
                             % (ext, file_path))

    if verbose:
        conn_.display_repository()