code: def apply_forward_raw(
      fwd,
      stc,
      info,
      start=None,
      stop=None,
      on_missing="raise",
      use_cps=True,
      verbose=None,
  ):
      """Project source space currents to sensor space using a forward operator.
  
      The sensor space data is computed for all channels present in fwd. Use
      pick_channels_forward or pick_types_forward to restrict the solution to a
      subset of channels.
  
      The function returns a Raw object, which is constructed using provided
      info. The info object should be from the same MEG system on which the
      original data was acquired. An exception will be raised if the forward
      operator contains channels that are not present in the info.
  
      Parameters
      ----------
      fwd : Forward
          Forward operator to use.
      stc : SourceEstimate
          The source estimate from which the sensor space data is computed.
      %(info_not_none)s
      start : int, optional
          Index of first time sample (index not time is seconds).
      stop : int, optional
          Index of first time sample not to include (index not time is seconds).
      %(on_missing_fwd)s
          Default is "raise".
  
          .. versionadded:: 0.18
      %(use_cps)s
  
          .. versionadded:: 0.21
      %(verbose)s
  
      Returns
      -------
      raw : Raw object
          Raw object with computed sensor space data.
  
      See Also
      --------
      apply_forward: Compute sensor space data and return an Evoked object.
      """
      # make sure info contains all channels in fwd
      for ch_name in fwd["sol"]["row_names"]:
          if ch_name not in info["ch_names"]:
              raise ValueError(
                  "Channel %s of forward operator not present in "
                  "info." % ch_name
              )
  
      # project the source estimate to the sensor space
      data, times = _apply_forward(
          fwd, stc, start, stop, on_missing=on_missing, use_cps=use_cps
      )
  
      sfreq = 1.0 / stc.tstep
      info, data = _fill_measurement_info(info, fwd, sfreq, data)
      with info._unlock():
          info["projs"] = []
      # store sensor data in Raw object using the info
      raw = RawArray(
          data, info, first_samp=int(np.round(times[0] * sfreq))
      )
      raw._projector = None
      return raw
  
imports: import os
  import re
  import shutil
  import tempfile
  from copy import deepcopy
  from os import PathLike
  from os import path
  from pathlib import Path
  from time import time
  import numpy
  from scipy import sparse
  from .._fiff.constants import FIFF
  from .._fiff.matrix import _read_named_matrix, _transpose_named_matrix, write_named_matrix
  from .._fiff.meas_info import Info, _make_ch_names_mapping, _read_bad_channels, _read_extended_ch_info, _write_bad_channels, _write_ch_infos, write_info
  from .._fiff.open import fiff_open
  from .._fiff.pick import pick_channels, pick_channels_forward, pick_info, pick_types
  from .._fiff.tag import find_tag, read_tag
  from .._fiff.tree import dir_tree_find
  from .._fiff.write import end_block, start_and_end_file, start_block, write_coord_trans, write_id, write_int, write_string
  from ..epochs import BaseEpochs
  from ..evoked import Evoked, EvokedArray
  from ..html_templates import _get_html_template
  from ..io import BaseRaw, RawArray
  from ..label import Label
  from ..source_estimate import _BaseSourceEstimate, _BaseVectorSourceEstimate
  from ..source_space._source_space import _get_src_nn, _read_source_spaces_from_tree, _set_source_space_vertices, _src_kind_dict, _write_source_spaces_to_fid, find_source_space_hemi
  from ..surface import _normal_orth
  from ..transforms import invert_transform, transform_surface_to, write_trans
  from ..utils import _check_compensation_grade, _check_fname, _check_option, _check_stc_units, _import_h5io_funcs, _on_missing, _stamp_to_dt, _validate_type, check_fname, fill_doc, get_subjects_dir, has_mne_c, logger, repr_html, run_subprocess, verbose, warn
label_desc: Use image node_id 24 for calling a global function with example usage: apply_forward_raw(fwd, stc, info, start, stop, on_missing, use_cps, verbose) and returns: raw