code: def getLogStream(logGroupName, jobName, jobId):
      response = cloudwatch.describe_log_streams(
          logGroupName=logGroupName,
          logStreamNamePrefix=jobName + "/" + jobId,
      )
      logStreams = response["logStreams"]
      if not logStreams:
          return ""
      else:
          return logStreams[0]["logStreamName"]
  
file_path: gluon-nlp/tools/batch/wait-job.py
imports: import argparse
  from datetime import datetime
  import sys
  import time
  import boto3
  from botocore.compat import total_seconds
label_desc: Use image node_id 2 for calling a global function with example usage: getLogStream(logGroupName, jobName, jobId) and returns: str, logStreams