code: def master_ip(master_host):
      yield socket.gethostbyname(master_host[0])
  
file_path: redis-py/tests/test_asyncio/test_sentinel.py
imports: import socket
  from unittest import mock
  import pytest
  import pytest_asyncio
  import redis.asyncio.sentinel
  from redis import exceptions
  from redis.asyncio.sentinel import MasterNotFoundError, Sentinel, SentinelConnectionPool, SlaveNotFoundError
label_desc: Use image node_id 1 for calling a global function with example usage: master_ip(master_host) without return types