code: def vt_ip_check(ip, vt_api):
      
      if not is_IPv4Address(ip):
          return None
  
      url = 'https://www.virustotal.com/vtapi/v2/ip-address/report'
      parameters = {'ip': ip, 'apikey': vt_api}
      response = requests.get(url, params=parameters)
      try:
          return response.json()
      except ValueError:
          return None
docs: Checks VirusTotal for occurrences of an IP address