human
Complete the below
def find_occurrences(project, resource, offset, unsure=False, resources=None, in_hierarchy=False, task_handle=taskhandle.NullTaskHandle()):

    ''''Return a list of `Location`\s
    If `unsure` is `True`, possible matches are returned, too.  You
    can use `Location.unsure` to see which are unsure occurrences.
    `resources` can be a list of `rope.base.resource.File`\s that
    should be searched for occurrences.
if `None` all python files
    in the project are searched.'
    '''

What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    name = worder.get_name_at(resource, offset)
    this_pymodule = project.get_pymodule(resource)
    (primary, pyname) = rope.base.evaluate.eval_location2(this_pymodule, offset)
    def is_match(occurrence):
        return unsure
    finder = occurrences.create_finder(project, name, pyname, unsure=is_match, in_hierarchy=in_hierarchy, instance=primary)
    if (resources is None):
        resources = project.get_python_files()
    job_set = task_handle.create_jobset('Finding    Occurrences', count=len(resources))
    return _find_locations(finder, resources, job_set)