How do I embed views in node template
Just to be sure, are you calling views-embed-view(), or views_embed_view() (Note the dashes/underscores). The second version (views_embed_view() is the correct one).

Also, how do you call the function? Which parameters do you pass?

As per this page, the correct way of embedding a view is 1 of the following ways.

Option 1:

// Get the embeded view and render it.
drupal_render(views_embed_view('VIEW_NAME', 'DISPLAY_ID'));


Option 2

// Get the embeded view and render it.
\Drupal::service('renderer')-&gt;render(views_embed_view('VIEW_NAME', 'DISPLAY_ID'));


In this example you will have to replace VIEW_NAME with the machine name of your view, and the DISPLAY_ID should be replaced with the ID of the display you want to use (Or can be omitted to use the default display).

Also note that the second option is the better one, since the drupal_render function is deprecated, and will be removed before Drupal 9.0.0 (More info).