parameters: (self, filename)
return_statement: return mimetype.startswith("image/")
docstring: Returns true if the filename has an image extension.
docstring_summary: Returns true if the filename has an image extension.
docstring_tokens: Returns true if the filename has an image extension .
function: def IsImage(self, filename):
      """Returns true if the filename has an image extension."""
      mimetype =  mimetypes.guess_type(filename)[0]
      if not mimetype:
        return False
      return mimetype.startswith("image/")
function_tokens: def IsImage ( self , filename ) : mimetype = mimetypes . guess_type ( filename ) [ 0 ] if not mimetype : return False return mimetype . startswith ( "image/" )