code: def _get_use_previous(
      f,
  ):  # TODO Sort and group features for DateOffset with two different temporal values
      if (
          isinstance(f, AggregationFeature)
          and f.use_previous is not None
      ):
          if len(f.use_previous.times.keys()) > 1:
              return ("", -1)
          else:
              unit = list(f.use_previous.times.keys())[0]
              value = f.use_previous.times[unit]
              return (unit, value)
      else:
          return ("", -1)
  
file_path: featuretools/featuretools/computational_backends/feature_set.py
imports: import itertools
  import logging
  from collections import defaultdict
  from featuretools.entityset.relationship import RelationshipPath
  from featuretools.feature_base import AggregationFeature, FeatureOutputSlice, GroupByTransformFeature, TransformFeature
  from featuretools.utils import Trie
label_desc: Use image node_id 1 for calling a global function with example usage: _get_use_previous(f) and returns: str,  unknown, str,  unknown, unit,  value