<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_ladder_metadata(session, url):
 """Get ladder metadata."""

    parsed = make_scrape_request(session, url)
    tag = parsed.find('a', href=re.compile(LADDER_ID_REGEX))
    return {
        'id': int(tag['href'].split('/')[-1]),
        'slug': url.split('/')[-1],
        'url': url
    }