code: def get_bytes_features(
      schema: schema_pb2.Schema,
  ) -> List[types.FeaturePath]:
      """Get the list of features that should be treated as bytes.
  
      Args:
        schema: The schema for the data.
  
      Returns:
        A list of features that should be considered bytes.
      """
      bytes_features = []
      for feature_path, feature in get_all_leaf_features(schema):
          domain_info = feature.WhichOneof("domain_info")
          if domain_info == "image_domain":
              bytes_features.append(feature_path)
      return bytes_features
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import logging
  from typing import Any, Iterable, List, Mapping, Optional, Set, Text, Tuple, Union
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import io_util
  from google.protobuf import descriptor
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 6 for calling a global function with example usage: get_bytes_features(schema) and returns: bytes_features