code: def import_all_references(arg, kwargs=None):
      
      defaultkwargs = {'importReference':True}
      if kwargs is None:
          kwargs = {}
      kwargs.update(defaultkwargs)
      imported = []
  
      # list all reference files
      refs = cmds.file(query=True, reference=True)
      while refs:
          for rfile in refs:
              cmds.file(rfile, **kwargs)
              imported.append(rfile)
          refs = cmds.file(query=True, reference=True)
      msg = "Successfully imported references %s with arguments: %s" % (imported, kwargs)
      return ActionStatus(ActionStatus.SUCCESS, msg, returnvalue=imported)
docs: Import all references in the currently open scene
  
      :param arg: this argument is ignored. But thisway you can use this function in an ActionUnit more easily.
      :param kwargs: keyword arguments for the command maya.cmds file.
                     defaultflags that are always used:
  
                       :importReference: ``True``
  
      :type kwargs: dict|None
      :returns: An action status. The returnvalue of the actionstatus are the imported references.
      :rtype: :class:`ActionStatus`
      :raises: None