code: def get_jina_loader_with_runtime(
      runtime_args: Optional[Dict[str, Any]] = None
  ):
      """Create a JinaLoader init function which already stored the runtime_args in the init function, usefully for
      `yaml.load(stream,loader=JinaLoader)` which needs a class with a init function with only one parameter
  
      :param runtime_args: Optional runtime_args to be directly passed without being parsed into a yaml config
      :return: A function that initialize a JinaLoader with the runtime_args stored within the function
  
      """
  
      def _get_loader(stream):
          return JinaLoader(stream, runtime_args)
  
      return _get_loader
  
imports: import collections
  import json
  import os
  import urllib.parse
  import urllib.request
  from typing import Any, Dict, List, Optional, TextIO, Tuple, Union
  from yaml import MappingNode
  from yaml.composer import Composer
  from yaml.constructor import ConstructorError, FullConstructor
  from yaml.parser import Parser
  from yaml.reader import Reader
  from yaml.resolver import Resolver
  from yaml.scanner import Scanner
  from jina.excepts import BadConfigSource
  from jina.helper import is_yaml_filepath
  from jina.importer import PathImporter
label_desc: Use image node_id 1 for calling a global function with example usage: get_jina_loader_with_runtime(runtime_args) and returns: _get_loader, JinaLoader