code: def time_context_from_ref(self, timex):
          
          # If the timex has a value set, it means that it refers to a DCT or
          # a TimeExpression e.g. "value": {"@id": "_:DCT_1"} and the parameters
          # need to be taken from there
          value = timex.get('value')
          if value:
              # Here we get the TimeContext directly from the stashed DCT
              # dictionary
              tc = self.doc.timexes.get(value['@id'])
              return tc
          return None
docs: Return a time context object given a timex reference entry.