You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: psexec_ms17_010.rb
    path of file: ./repos/metasploit-framework/lib/msf/core/exploit/remote/smb/client
    
    the code of the file until where you have to start completion: module Msf
module Exploit::Remote::SMB::Client::Psexec_MS17_010

  include Msf::Exploit::Remote::SMB::Client::Psexec
  include Msf::Exploit::Remote::SMB::Client::Pip
    
  def find_accessible_named_pipe
    @ctx['pipe_name'], pipe_handle = check_named_pipes(
      check_first:  datastore['NAMEDPIPE'],
      return_first: true
    )

    if @ctx['pipe_name'] && pipe_handle
      pipe_handle
    else
      raise MS17_010_Error, 'Unable to find accessible named pipe!'
    end