code: def substitute_text(text: str, environment: Dict[str, str]) -> str:
      """
      Example:
          text = "Hello {name}"
          environment = {"name": "Sue"}
          Return "Hello Sue"
      """
      return mako.template.Template(text).render(**environment)
  
imports: import mako.template
  from abc import ABC, abstractmethod
  from dataclasses import dataclass
  from typing import Dict, List, Tuple, Any
  from helm.common.general import parse_hocon
  from helm.common.critique_request import CritiqueRequest, CritiqueRequestResult
  from helm.common.perspective_api_request import PerspectiveAPIRequestResult, PerspectiveAPIRequest
  from helm.common.tokenization_request import WindowServiceInfo, TokenizationRequest, TokenizationRequestResult, DecodeRequest, DecodeRequestResult
  from helm.common.request import Request, RequestResult
  from helm.proxy.models import Model
  from helm.proxy.query import Query, QueryResult
  from helm.proxy.accounts import Authentication, Account
label_desc: Use image node_id 2 for calling a global function with example usage: substitute_text(text, environment) and returns: mako