<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_scope_string(date, region):
 """ Generate scope string. :param date: Date is input from :meth:`datetime.datetime` :param region: Region should be set to bucket region. """

    formatted_date = date.strftime("%Y%m%d")
    scope = '/'.join([formatted_date,
                      region,
                      's3',
                      'aws4_request'])
    return scope