<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _datasets_line(args):
 """Implements the BigQuery datasets magic used to display datasets in a project. The supported syntax is: %bigquery datasets [-f <filter>] [-p|--project <project_id>] Args: args: the arguments following '%bigquery datasets'. Returns: The HTML rendering for the table of datasets. """

  filter_ = args['filter'] if args['filter'] else '*'
  return _render_list([str(dataset) for dataset in datalab.bigquery.Datasets(args['project'])
                       if fnmatch.fnmatch(str(dataset), filter_)])