original_docstring:  Convert a dict to a list of dicts.
      This is because that's how labels should be sent to Cloudify API.
      :param labels: The labels dict.
      :type labels: dict
      :return: a list of dicts
      :rtype: list
      
docstring: Convert a dict to a list of dicts.
  This is because that's how labels should be sent to Cloudify API.
docstring_tokens: Convert a dict to a list of dicts . This is because that ' s how labels should be sent to Cloudify API .
code: def convert_dict_to_list(labels):
      """ Convert a dict to a list of dicts.
      This is because that's how labels should be sent to Cloudify API.
      :param labels: The labels dict.
      :type labels: dict
      :return: a list of dicts
      :rtype: list
      """
      labels = deepcopy(labels)
      target_list = []
      for key, value in labels.items():
          target_list.append({key: value})
      return target_list
code_tokens: def convert_dict_to_list ( labels ) : labels = deepcopy ( labels ) target_list = [ ] for key , value in labels . items ( ) : target_list . append ( { key : value } ) return target_list
short_docstring: Convert a dict to a list of dicts.
short_docstring_tokens: Convert a dict to a list of dicts .
comment: """ Convert a dict to a list of dicts.
      This is because that's how labels should be sent to Cloudify API.
      :param labels: The labels dict.
      :type labels: dict
      :return: a list of dicts
      :rtype: list
      """