def METHOD_NAME(
    skale_manager_opts,
    schain_config,
    _schain_name,
    predeployed_ima
):
    with mock.patch('core.schains.config.static_params.ENV_TYPE', new='testnet'):
        static_node_info = get_static_node_info(SchainType.medium)
        current_node_info = generate_current_node_info(
            node={'name': 'test', 'port': 10000},
            node_id=1,
            ecdsa_key_name='123',
            static_node_info=static_node_info,
            schain={'name': _schain_name, 'partOfNode': 0},
            schains_on_node=[{'name': _schain_name, 'port': 10000}],
            rotation_id=0,
            skale_manager_opts=skale_manager_opts
        )
    current_node_info_dict = current_node_info.to_dict()
    assert current_node_info_dict['nodeID'] == 1
    assert current_node_info_dict['nodeName'] == 'test'
    assert current_node_info_dict['basePort'] == 10000
    assert current_node_info_dict['httpRpcPort'] == 10003
    assert current_node_info_dict['httpsRpcPort'] == 10008
    assert current_node_info_dict['wsRpcPort'] == 10002
    assert current_node_info_dict['infoHttpRpcPort'] == 10009
    assert current_node_info_dict['minCacheSize'] == 8000000
    assert current_node_info_dict['maxCacheSize'] == 16000000
    assert current_node_info_dict['collectionQueueSize'] == 20
    with mock.patch('core.schains.config.static_params.ENV_TYPE', new='mainnet'):
        static_node_info = get_static_node_info(SchainType.medium)
        current_node_info = generate_current_node_info(
            node={'name': 'test', 'port': 10000},
            node_id=1,
            ecdsa_key_name='123',
            static_node_info=static_node_info,
            schain={'name': _schain_name, 'partOfNode': 0},
            schains_on_node=[{'name': _schain_name, 'port': 10000}],
            rotation_id=0,
            skale_manager_opts=skale_manager_opts
        )
    current_node_info_dict = current_node_info.to_dict()
    assert current_node_info_dict['maxCacheSize'] == 16000000