code: def cancel_run(repo: str, run_id: Union[str, int]) -> dict[str, Any]:
      return request(
          "POST", f"/repos/{repo}/actions/runs/{run_id}/cancel"
      )
  
file_path: superset/scripts/cancel_github_workflows.py
imports: import os
  from collections.abc import Iterable, Iterator
  from typing import Any, Literal, Optional, Union
  import click
  import requests
  from click.exceptions import ClickException
  from dateutil import parser
label_desc: Use image node_id 3 for calling a global function with example usage: cancel_run(repo, run_id) and returns: request