code: def create_github_release(
      slug: Text, token: Text, tag_name: Text, body: Text
  ):
      """Create a github release."""
  
      github = github3.login(token=token)
      owner, repo = slug.split("/")
      repo = github.repository(owner, repo)
      return repo.create_release(tag_name=tag_name, body=body)
  
file_path: rasa/scripts/publish_gh_release_notes.py
imports: import os
  import re
  import sys
  from pathlib import Path
  from typing import Text
  import github3
  from pep440_version_utils import Version
label_desc: Use image node_id 1 for calling a global function with example usage: create_github_release(slug, token, tag_name, body) and returns: repo