code: def extract_value(match: Dict[Text, Any]) -> Dict[Text, Any]:
      if match["value"].get("type") == "interval":
          value = {
              "to": match["value"].get("to", {}).get("value"),
              "from": match["value"].get("from", {}).get("value"),
          }
      else:
          value = match["value"].get("value")
  
      return value
  
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 1 for calling a global function with example usage: extract_value(match) and returns: value