<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_pkg_dist(pkg_name, working_set=None):
 """ Locate a package's distribution by its name. """


    working_set = working_set or default_working_set
    req = Requirement.parse(pkg_name)
    return working_set.find(req)