def METHOD_NAME(self, procs):
    for proc in procs:
        pid = "Unknown"
        try:
            pid = proc.UniqueProcessId
            proc_layer_name = proc.add_process_layer()
            proc_layer = self.context.layers[proc_layer_name]
        except exceptions.InvalidAddressException as excp:
            vollog.debug(
                "Process {}: invalid address {} in layer {}".format(
                    pid, excp.invalid_address, excp.layer_name
                )
            )
            continue
        if self.config["dump"]:
            file_handle = self.open(f"pid.{pid}.dmp")
        else:
            # Ensure the file isn't actually created if not needed
            file_handle = contextlib.ExitStack()
        with file_handle as file_data:
            file_offset = 0
            for mapval in proc_layer.mapping(
                0x0, proc_layer.maximum_address, ignore_errors=True
            ):
                offset, size, mapped_offset, mapped_size, maplayer = mapval
                file_output = "Disabled"
                if self.config["dump"]:
                    try:
                        data = proc_layer.read(offset, size, pad=True)
                        file_data.write(data)
                        file_output = file_handle.preferred_filename
                    except exceptions.InvalidAddressException:
                        file_output = "Error outputting to file"
                        vollog.debug(
                            "Unable to write {}'s address {} to {}".format(
                                proc_layer_name,
                                offset,
                                file_handle.preferred_filename,
                            )
                        )
                yield (
                    0,
                    (
                        format_hints.Hex(offset),
                        format_hints.Hex(mapped_offset),
                        format_hints.Hex(mapped_size),
                        format_hints.Hex(file_offset),
                        file_output,
                    ),
                )
                file_offset += mapped_size
                offset += mapped_size