code: def validate_time_slice(max_period, min_period):
      check_argument(
          max_period in TIME_RESOLUTIONS,
          "max_period {} must be a valid resolution in {}",
          max_period,
          TIME_RESOLUTIONS,
      )
      check_argument(
          min_period in TIME_RESOLUTIONS,
          "min_period {} must be a valid resolution in {}",
          min_period,
          TIME_RESOLUTIONS,
      )
      start = TIME_RESOLUTIONS.index(max_period)
      end = TIME_RESOLUTIONS.index(min_period) + 1
      check_argument(
          start < end,
          "max_period {} must be earlier in sequence {} than "
          "min_period {}",
          max_period,
          TIME_RESOLUTIONS,
          min_period,
      )
      return TIME_RESOLUTIONS[start:end]
  
imports: from __future__ import absolute_import, division, print_function
  import math
  import re
  from collections import namedtuple
  import numpy
  import hypothesis.internal.conjecture.utils
  import hypothesis.strategies._internal.core
  from hypothesis import Verbosity, assume
  from hypothesis._settings import note_deprecation
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.compat import PY2, hrange, integer_types, quiet_raise, string_types
  from hypothesis.internal.coverage import check_function
  from hypothesis.internal.reflection import proxies, reserved_means_kwonly_star
  from hypothesis.internal.validation import check_type, check_valid_interval
  from hypothesis.reporting import current_verbosity
  from hypothesis.strategies._internal import SearchStrategy
  from hypothesis.utils.conventions import UniqueIdentifier, not_set
label_desc: Use image node_id 15 for calling a global function with example usage: validate_time_slice(max_period, min_period) and returns: TIME_RESOLUTIONS