def METHOD_NAME(session, prot, ip_ver, params, test):
    """
    Test file transfer from host to vm via socat
    :param session: vm session
    :param prot: protocol
    :param ip_ver: ip version
    :param params: test params
    :param test: test instance
    """
    test_file = params.get('test_file')
    rec_file = params.get('rec_file')
    cmd_create_file = params.get('cmd_create_file')
    port = params.get('port')
    cmd_listen = eval(params.get('cmd_listen'))
    process.run(cmd_create_file, shell=True)
    md5 = process.run(f'md5sum {test_file}',
                      shell=True).stdout_text.split()[0]
    LOG.debug(f'MD5 of sent file: {md5}')
    session.sendline('systemctl stop firewalld')
    session.sendline(cmd_listen)
    time.sleep(5)
    addr = 'localhost' if ip_ver == 'ipv4' else '[::1]'
    cmd_transfer = eval(params.get('cmd_transfer'))
    process.run(cmd_transfer, shell=True)
    if session.cmd_status(f'test -a {rec_file}') != 0:
        test.fail(f'VM did not recieve {rec_file}')
    vm_file_md5 = session.cmd_output(f'md5sum {rec_file}')
    vm_file_md5 = vm_file_md5.split()[0]
    LOG.debug(f'MD5 of recieved file: {vm_file_md5}')
    try:
        if md5 == vm_file_md5:
            LOG.debug('MD5 check PASS')
        else:
            test.fail('MD5 of files from host and vm NOT match')
    finally:
        session.cmd(f'rm {rec_file} -f')