code: def _get_data(x, ch_idx):
      """Get the (n_ch, n_times) data array."""
      from ..evoked import Evoked
      from ..io import BaseRaw
  
      if isinstance(x, BaseRaw):
          return x[ch_idx][0]
      elif isinstance(x, Evoked):
          return x.data[ch_idx]
  
imports: import inspect
  import os
  import sys
  import tempfile
  import traceback
  from functools import wraps
  from io import StringIO
  from shutil import rmtree
  from unittest import SkipTest
  import numpy
  from numpy.testing import assert_allclose, assert_array_equal
  from scipy import linalg
  from ._logging import ClosingStringIO, warn
  from .check import check_version
  from .misc import run_subprocess
  from .numerics import object_diff
label_desc: Use image node_id 14 for calling a global function with example usage: _get_data(x, ch_idx) and returns: x, x