code: def _create_filters(
      col_params, extractors, *, include_hparam_filters=True
  ):
      """Creates filters for the given col_params.
  
      Args:
        col_params: List of ListSessionGroupsRequest.ColParam protobufs.
        extractors: list of extractor functions of the same length as col_params.
          Each element should extract the column described by the corresponding
          element of col_params.
        include_hparam_filters: bool that indicates whether hparam filters should
          be generated. Defaults to True.
      Returns:
        A list of filter functions. Each corresponding to a single
        col_params.filter oneof field of _request
      """
      result = []
      for col_param, extractor in zip(col_params, extractors):
          if not include_hparam_filters and col_param.hparam:
              continue
  
          a_filter = _create_filter(col_param, extractor)
          if a_filter:
              result.append(a_filter)
      return result
  
imports: import collections
  import dataclasses
  import operator
  import re
  from typing import Optional
  from google.protobuf import struct_pb2
  from tensorboard.data import provider
  from tensorboard.plugins.hparams import api_pb2
  from tensorboard.plugins.hparams import backend_context
  from tensorboard.plugins.hparams import error
  from tensorboard.plugins.hparams import json_format_compat
  from tensorboard.plugins.hparams import metadata
  from tensorboard.plugins.hparams import metrics
  from tensorboard.plugins.hparams import plugin_data_pb2
label_desc: Use image node_id 7 for calling a global function with example usage: _create_filters(col_params, extractors) and returns: result