code: def _set_redirect(redirect_from, path):
      app = get_app()
      if redirect_from and len(redirect_from):
          for redirect in redirect_from:
              fullname = app.get_relative_path(redirect)
              app.server.add_url_rule(
                  fullname,
                  fullname,
                  _create_redirect_function(
                      app.get_relative_path(path)
                  ),
              )
  
imports: import collections
  import importlib
  import os
  import re
  import sys
  from fnmatch import fnmatch
  from pathlib import Path
  from os.path import isfile, join
  from urllib.parse import parse_qs
  import flask
  from .None import _validate
  from ._utils import AttributeDict
  from ._get_paths import get_relative_path
  from ._callback_context import context_value
  from ._get_app import get_app
label_desc: Use image node_id 10 for calling a global function with example usage: _set_redirect(redirect_from, path) without return types