code: def create_temp_creds(client_id, access_token, start=None, expires=None,
                        scopes=None, name=None):
      
      now = arrow.utcnow().replace(minutes=-10)
      start = start or now.datetime
      expires = expires or now.replace(days=31).datetime
      scopes = scopes or ['assume:project:taskcluster:worker-test-scopes', ]
      creds = createTemporaryCredentials(client_id, access_token, start, expires,
                                         scopes, name=name)
      for key, value in creds.items():
          try:
              creds[key] = value.decode('utf-8')
          except (AttributeError, UnicodeDecodeError):
              pass
      return creds
docs: Request temp TC creds with our permanent creds.
  
      Args:
          client_id (str): the taskcluster client_id to use
          access_token (str): the taskcluster access_token to use
          start (str, optional): the datetime string when the credentials will
              start to be valid.  Defaults to 10 minutes ago, for clock skew.
          expires (str, optional): the datetime string when the credentials will
              expire.  Defaults to 31 days after 10 minutes ago.
          scopes (list, optional): The list of scopes to request for the temp
              creds.  Defaults to ['assume:project:taskcluster:worker-test-scopes', ]
          name (str, optional): the name to associate with the creds.
  
      Returns:
          dict: the temporary taskcluster credentials.