code: def update_commit_dependencies(dependencies, new_sha):
      if dependencies is None:
          return
      for dep_name in dependencies:
          dep = dependencies[dep_name]
          if hasattr(dep, "get"):
              if dep.get("git") == "https://github.com/apache/arrow-rs":
                  dep["rev"] = new_sha
  
file_path: arrow-datafusion/dev/update_arrow_deps.py
imports: import argparse
  from pathlib import Path
  import tomlkit
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: update_commit_dependencies(dependencies, new_sha) without return types