def METHOD_NAME(values, prefix):
    """
    This function takes a list as 'values' parameter and filters out all list values which contain prefix.
    The prefix is defined in parameter 'prefix'
    """
    if values is None:
        raise errors.AnsibleFilterError('Values is not provided')
    if prefix is None:
        raise errors.AnsibleFilterError('Prefix is not provided')
    if not isinstance(values, list):
        raise errors.AnsibleFilterError('Wrong type for values')
    if not isinstance(prefix, str):
        raise errors.AnsibleFilterError('Wrong type for the prefix')
    return filter(lambda x: x.startswith(prefix), values)