private function createTagPositionFunction($name, array $options)
    {
        $options = array_merge($options, [
            'node_class' => 'Fxp\Component\RequireAsset\Twig\Node\TagPositionFunctionNode',
            'is_safe' => ['html'],
            'category' => null,
            'type' => null,
        ], $options);
        $callable = [$this, 'createTagPosition'];

        $tagPosition = new TwigFunction($name, $callable, $options);
        $tagPosition->setArguments([
            $options['category'],
            $options['type'],
        ]);

        return $tagPosition;
    }