<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all_external_accounts(resource_root, type_name, view=None):
 """ Lookup all external accounts of a particular type, by type name. @param resource_root: The root Resource object. @param type_name: Type name @param view: View @return: An ApiList of ApiExternalAccount objects matching the specified type """

  return call(resource_root.get,
      EXTERNAL_ACCOUNT_FETCH_PATH % ("type", type_name,),
      ApiExternalAccount, True, params=view and dict(view=view) or None)