<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def user_list(self, name=None, name_matches=None, min_level=None, max_level=None, level=None, user_id=None, order=None):
 """Function to get a list of users or a specific user. Levels: Users have a number attribute called level representing their role. The current levels are: Member 20, Gold 30, Platinum 31, Builder 32, Contributor 33, Janitor 35, Moderator 40 and Admin 50. Parameters: name (str):
 Supports patterns. name_matches (str):
 Same functionality as name. min_level (int):
 Minimum level (see section on levels). max_level (int):
 Maximum level (see section on levels). level (int):
 Current level (see section on levels). user_id (int):
 The user id. order (str):
 Can be: 'name', 'post_upload_count', 'note_count', 'post_update_count', 'date'. """

        params = {
            'search[name]': name,
            'search[name_matches]': name_matches,
            'search[min_level]': min_level,
            'search[max_level]': max_level,
            'search[level]': level,
            'search[id]': user_id,
            'search[order]': order
            }
        return self._get('users.json', params)