class_docstr: Searches for structured entities, e.g. dates, using a duckling server.
code: def _reference_time_from_message(message: Message) -> int:
      if message.time is not None:
          try:
              return message.time * 1000
          except ValueError as e:
              logging.warning(
                  "Could not parse timestamp {}. Instead "
                  "current UTC time will be passed to "
                  "duckling. Error: {}".format(message.time, e)
              )
      # fallbacks to current time, multiplied by 1000 because duckling
      # requires the reftime in milliseconds
      return int(time.time()) * 1000
  
imports: from __future__ import annotations
  import time
  import json
  import logging
  import os
  import requests
  from typing import Any, List, Optional, Text, Dict
  import rasa.utils.endpoints
  from rasa.engine.graph import GraphComponent, ExecutionContext
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.constants import DOCS_URL_COMPONENTS
  from rasa.shared.nlu.constants import ENTITIES, TEXT
  from rasa.nlu.extractors.extractor import EntityExtractorMixin
  from rasa.shared.nlu.training_data.message import Message
  import rasa.shared.utils.io
label_desc: Use image node_id 7 for calling the DucklingEntityExtractor obj's underlying member method code with example usage: obj._reference_time_from_message(message) and returns: unknown, unknown