code: def _parse_mount_table(exit_code, output):
      """Parses the output of ``mount`` to produce (path, fs_type) pairs
  
      Separated from _generate_cifs_table to enable testing logic with real
      outputs
      """
      # Not POSIX
      if exit_code != 0:
          return []
  
      # Linux mount example:  sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
      #                          <PATH>^^^^      ^^^^^<FSTYPE>
      # OSX mount example:    /dev/disk2 on / (hfs, local, journaled)
      #                               <PATH>^  ^^^<FSTYPE>
      pattern = re.compile(r".*? on (/.*?) (?:type |\()([^\s,\)]+)")
  
      # Keep line and match for error reporting (match == None on failure)
      # Ignore empty lines
      matches = [
          (l, pattern.match(l))
          for l in output.strip().splitlines()
          if l
      ]
  
      # (path, fstype) tuples, sorted by path length (longest first)
      mount_info = sorted(
          (match.groups() for _, match in matches if match is not None),
          key=lambda x: len(x[0]),
          reverse=True,
      )
      cifs_paths = [
          path
          for path, fstype in mount_info
          if fstype.lower() == "cifs"
      ]
  
      # Report failures as warnings
      for line, match in matches:
          if match is None:
              fmlogger.debug("Cannot parse mount line: '%s'", line)
  
      return [
          mount
          for mount in mount_info
          if any(mount[0].startswith(path) for path in cifs_paths)
      ]
  
imports: import sys
  import pickle
  import errno
  import subprocess
  import gzip
  import hashlib
  import locale
  from hashlib import md5
  import os
  import os.path
  import re
  import shutil
  import contextlib
  import posixpath
  from pathlib import Path
  import simplejson
  from time import sleep, time
  from ..None import logging, config, __version__
  from .misc import is_container
label_desc: Use image node_id 8 for calling a global function with example usage: _parse_mount_table(exit_code, output) and returns: unknown, list