code: def get_content_type(*names):
      
      for name in names:
          if name is not None:
              mimetype, encoding = mimetypes.guess_type(name)
              if mimetype is not None:
                  if isinstance(mimetype, bytes):
                      return mimetype.decode("ascii")
                  else:
                      return mimetype
      else:
          return "application/octet-stream"
docs: Return the MIME content type for the file with the given name.