code: def _parse_mask(line: str) -> np.ndarray:
      """Parse a string of `+` and `-` into a bool array."""
      return np.array([ch == "+" for ch in line], dtype=bool)
  
file_path: datasets/tensorflow_datasets/datasets/protein_net/protein_net_dataset_builder.py
imports: from __future__ import annotations
  import os
  from typing import Dict, Iterator, List, Optional, Sequence, Tuple, Union
  import urllib
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_mask(line) and returns: np