def METHOD_NAME(self, to_lookup: dict):
    """
    :param to_lookup: dict with {ioc_type: ioc}
    supported ioc types are md5_hash and url
    """
    ioc_type = next(iter(to_lookup))
    uri = 'url' if ioc_type=='url' else 'payload'
    try:
        return self.urlhaus_session.post(
            f'{URLHAUS_BASE_URL}/{uri}/',
            to_lookup,
            headers=self.urlhaus_session.headers,
        )
    except requests.exceptions.ConnectionError:
        self.create_urlhaus_session()