parameters: (filename, mime=False)
return_statement: return m.from_file(filename)
docstring: Accepts a filename and returns the detected filetype.  Return
      value is the mimetype if mime=True, otherwise a human readable
      name.
  
      >>> magic.from_file("testdata/test.pdf", mime=True)
      'application/pdf'
docstring_summary: Accepts a filename and returns the detected filetype.  Return
      value is the mimetype if mime=True, otherwise a human readable
      name.
docstring_tokens: Accepts a filename and returns the detected filetype . Return value is the mimetype if mime = True otherwise a human readable name .
function: def from_file(filename, mime=False):
      """"
      Accepts a filename and returns the detected filetype.  Return
      value is the mimetype if mime=True, otherwise a human readable
      name.
  
      >>> magic.from_file("testdata/test.pdf", mime=True)
      'application/pdf'
      """
      m = _get_magic_type(mime)
      return m.from_file(filename)
function_tokens: def from_file ( filename , mime = False ) : m = _get_magic_type ( mime ) return m . from_file ( filename )