code: def update_mock_repo():
      
      target_file = os.path.abspath(
          join("tests", "data", "memote-mock-repo.tar.gz")
      )
      temp_dir = mkdtemp(prefix='tmp_mock')
      previous_wd = os.getcwd()
      try:
          LOGGER.info("Cloning repository.")
          os.chdir(temp_dir)
          check_output(
              ['git', 'clone',
               'https://github.com/ChristianLieven/memote-mock-repo.git']
          )
          os.chdir('memote-mock-repo/')
          LOGGER.info("Setting git to ignore filemode changes.")
          call(
              ['git', 'config',
               'core.fileMode', 'false']
          )
          call(
              ['git', 'config',
               'user.email', 'memote@opencobra.com']
          )
          call(
              ['git', 'config',
               'user.name', 'memote-bot']
          )
      finally:
          LOGGER.info("Compressing to tarball.")
          tar = tarfile.open(target_file, "w:gz")
          tar.add(
              join(temp_dir, 'memote-mock-repo/'),
              arcname="memote-mock-repo"
          )
          tar.close()
          LOGGER.info("Success!")
          LOGGER.info("Removing temporary directory.")
          rmtree(temp_dir)
          LOGGER.info("Success! The mock repo has been updated.")
          os.chdir(previous_wd)
docs: Clone and gzip the memote-mock-repo used for CLI and integration tests.
  
      The repo is hosted at
      'https://github.com/ChristianLieven/memote-mock-repo.git' and maintained
      separately from