code: def _read_bad_channels(chans):
      """Check _channels.tsv file to look for premarked bad channels."""
      bads = list()
      for ii in range(0, len(chans["status"])):
          if chans["status"][ii] == "bad":
              bads.append(chans["name"][ii])
      return bads
  
imports: import json
  import pathlib
  import numpy
  from ..._fiff._digitization import _make_dig_points
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.utils import _read_segments_file
  from ..._fiff.write import get_new_file_id
  from ...transforms import Transform, apply_trans, get_ras_to_neuromag_trans
  from ...utils import _check_fname, fill_doc, verbose, warn
  from ..base import BaseRaw
  from .sensors import _get_plane_vectors, _get_pos_units, _refine_sensor_orientation, _size2units
label_desc: Use image node_id 5 for calling a global function with example usage: _read_bad_channels(chans) and returns: bads