code: def validate_js_path(
      registered_paths, package_name, path_in_package_dist
  ):
      if package_name not in registered_paths:
          raise exceptions.DependencyException(
              f"""
              Error loading dependency. "{package_name}" is not a registered library.
              Registered libraries are:
              {list(registered_paths.keys())}
              """
          )
  
      if path_in_package_dist not in registered_paths[package_name]:
          raise exceptions.DependencyException(
              f"""
              "{package_name}" is registered but the path requested is not valid.
              The path requested: "{path_in_package_dist}"
              List of registered paths: {registered_paths}
              """
          )
  
imports: from collections.abc import MutableSequence
  import re
  from textwrap import dedent
  from keyword import iskeyword
  import flask
  from ._grouping import grouping_len, map_grouping
  from .development.base_component import Component
  from .None import exceptions
  from ._utils import patch_collections_abc, stringify_id, to_json, coerce_to_list, clean_property_name
label_desc: Use image node_id 10 for calling a global function with example usage: validate_js_path(registered_paths, package_name, path_in_package_dist) without return types