code: def test_logger_init_hostname_port(visdom_server):
      # Explicit hostname, port
      vd_logger = VisdomLogger(
          server=visdom_server[0], port=visdom_server[1], num_workers=0
      )
      assert "main" in vd_logger.vis.get_env_list()
      vd_logger.close()
  
imports: import sys
  from unittest.mock import ANY, call, MagicMock, patch
  import pytest
  import torch
  from ignite.contrib.handlers.visdom_logger import _DummyExecutor, global_step_from_engine, GradsScalarHandler, OptimizerParamsHandler, OutputHandler, VisdomLogger, WeightsScalarHandler
  from ignite.engine import Engine, Events, State
label_desc: Use image node_id 17 for calling a global function with example usage: test_logger_init_hostname_port(visdom_server) without return types