I want to do something like: want to display one plugin's page on other plugin's page.

I have read https://wordpress.stackexchange.com/questions/97234/including-file-or-library-from-other-plugin 
but its not working for me or either am doing something wrong

let say I want to use plugin-1 into plugin-2

here whats the meaning of 

    do_action( 'my_library_loaded', plugin_dir_path( __FILE__ ) );

plugin_dir_path( __FILE__ ) path of which plugin (plugin-1 or plugin-2 ?) and where I have to put this? (in plugin-1 or plugin-2 ?) 

same question for `add_action( 'my_library_loaded', 'other_plugin_init_handler' );`

any suggestion please