code: def find_ip_by_net_interface(target_interface):
      """Returns ip, debug_info."""
      ifces = psutil.net_if_addrs()
      ip = None
      for ifce in ifces:
          # See https://docs.docker.com/v17.09/engine/userguide/networking/default_network/custom-docker0/ # noqa E501
          if ifce == target_interface:
              addrs = ifces[ifce]
              for snicaddr in addrs:
                  # IPv4 only
                  if snicaddr.family == socket.AF_INET:
                      ip = snicaddr.address
                      return ip
      return None
  
imports: import itertools
  import logging
  import multiprocessing.util
  import os
  import re
  import sys
  import socket
  import threading
  import weakref
  import psutil
label_desc: Use image node_id 3 for calling a global function with example usage: find_ip_by_net_interface(target_interface) and returns: None, ip