code: def _parse_dependency_list(depedency_list: list) -> dict:
      """Placeholder docstring"""
  
      # Divide a string into 2 part, first part is the module name
      # and second part is its version constraint or the url
      # checkout tests/unit/sagemaker/serve/detector/test_dependency_manager.py
      # for examples
      pattern = r"^([\w.-]+)(@[^,\n]+|((?:[<>=!~]=?[\w.*-]+,?)+)?)$"
  
      module_version_dict = {}
  
      for dependency in depedency_list:
          if dependency.startswith("#"):
              continue
          match = re.match(pattern, dependency)
          if match:
              package = match.group(1)
              # Group 2 is either a URL or version constraint, if present
              url_or_version = match.group(2) if match.group(2) else ""
              module_version_dict.update({package: url_or_version})
          else:
              module_version_dict.update({dependency: ""})
  
      return module_version_dict
  
file_path: sagemaker-python-sdk/src/sagemaker/serve/detector/dependency_manager.py
imports: from __future__ import absolute_import
  from pathlib import Path
  import logging
  import subprocess
  import sys
  import re
label_desc: Use image node_id 5 for calling a global function with example usage: _parse_dependency_list(depedency_list) and returns: module_version_dict