parameters: (filename)
return_statement: return ftype, err_msg
docstring: Return a tuple (type, msg) where 'type' specifies the classified type
      of 'filename'. If 'type' is 'IT_Invalid' then 'msg' is a human readable
      string represeting the error.
docstring_summary: Return a tuple (type, msg) where 'type' specifies the classified type
      of 'filename'. If 'type' is 'IT_Invalid' then 'msg' is a human readable
      string represeting the error.
docstring_tokens: Return a tuple ( type msg ) where type specifies the classified type of filename . If type is IT_Invalid then msg is a human readable string represeting the error .
function: def classify_input_file(filename):
      """
      Return a tuple (type, msg) where 'type' specifies the classified type
      of 'filename'. If 'type' is 'IT_Invalid' then 'msg' is a human readable
      string represeting the error.
      """
      ftype = IT_Invalid
      err_msg = None
      if not os.path.exists(filename):
          err_msg = "'%s' does not exist" % filename
      elif not os.path.isfile(filename):
          err_msg = "'%s' does not name a file" % filename
      elif is_executable_file(filename):
          ftype = IT_Executable
      elif is_json_file(filename):
          ftype = IT_JSON
      else:
          err_msg = "'%s' does not name a valid benchmark executable or JSON file" % filename
      return ftype, err_msg
function_tokens: def classify_input_file ( filename ) : ftype = IT_Invalid err_msg = None if not os . path . exists ( filename ) : err_msg = "'%s' does not exist" % filename elif not os . path . isfile ( filename ) : err_msg = "'%s' does not name a file" % filename elif is_executable_file ( filename ) : ftype = IT_Executable elif is_json_file ( filename ) : ftype = IT_JSON else : err_msg = "'%s' does not name a valid benchmark executable or JSON file" % filename return ftype , err_msg