code: def get_unit_process_ids(
              self, unit_processes, expect_success=True, pgrep_full=False):
          
          pid_dict = {}
          for sentry_unit, process_list in six.iteritems(unit_processes):
              pid_dict[sentry_unit] = {}
              for process in process_list:
                  pids = self.get_process_id_list(
                      sentry_unit, process, expect_success=expect_success,
                      pgrep_full=pgrep_full)
                  pid_dict[sentry_unit].update({process: pids})
          return pid_dict
docs: Construct a dict containing unit sentries, process names, and
          process IDs.
  
          :param unit_processes: A dictionary of Amulet sentry instance
              to list of process names.
          :param expect_success: if False expect the processes to not be
              running, raise if they are.
          :returns: Dictionary of Amulet sentry instance to dictionary
              of process names to PIDs.