code: def listmailcapfiles():
      """Return a list of all mailcap files found on the system."""
      # This is mostly a Unix thing, but we use the OS path separator anyway
      if "MAILCAPS" in os.environ:
          pathstr = os.environ["MAILCAPS"]
          mailcaps = pathstr.split(os.pathsep)
      else:
          if "HOME" in os.environ:
              home = os.environ["HOME"]
          else:
              # Don't bother with getpwuid()
              home = "."  # Last resort
          mailcaps = [
              home + "/.mailcap",
              "/etc/mailcap",
              "/usr/etc/mailcap",
              "/usr/local/etc/mailcap",
          ]
      return mailcaps
  
file_path: catboost/contrib/tools/python3/src/Lib/mailcap.py
imports: import os
  import warnings
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: listmailcapfiles() and returns: mailcaps