def METHOD_NAME(ctx):
    """Checks if the context includes the ``is_meta`` config
    item, and if it does, raises an error because this task
    should only be called from a package.
    """
    if getattr(ctx, "is_meta", False):
        raise ParseError("This task must be called from within a package.")