code: def _init_resource_source_select(s, s_min, s_max):
      select = []
      select.extend(
          [SelectSpec(x, None) for x in _coerce_list(s, "select")]
      )
      select.extend(
          [
              SelectSpec(x, _select_reduce_min)
              for x in _coerce_list(s_min, "select-min")
          ]
      )
      select.extend(
          [
              SelectSpec(x, _select_reduce_max)
              for x in _coerce_list(s_max, "select-max")
          ]
      )
      return select
  
imports: import collections
  import copy
  import logging
  import operator
  import pprint
  from guild import util
label_desc: Use image node_id 5 for calling a global function with example usage: _init_resource_source_select(s, s_min, s_max) and returns: select