def METHOD_NAME(self, title, year, is_movie):
    """Search the IMDB ID for the given `title` and `year`.
    :param str title: title to search for.
    :param int year: year to search for (or 0 if not relevant).
    :param bool is_movie: If True, IMDB ID will be searched for in TMDB instead of Wizdom.
    :return: the IMDB ID for the given title and year (or None if not found).
    :rtype: str
    """
    # make the search
    logger.info("Searching IMDB ID for %r%r", title, "" if not year else " ({})".format(year))
    category = "movie" if is_movie else "tv"
    title = title.replace("'", "")
    # get TMDB ID first
    r = self.session.get(
        "http://api.tmdb.org/3/search/{}?api_key={}&query={}{}&language=en".format(
            category, settings.TMDB_API_KEY, title, "" if not year else "&year={}".format(year)
        )
    )
    r.raise_for_status()
    tmdb_results = r.json().get("results")
    if tmdb_results:
        tmdb_id = tmdb_results[0].get("id")
        if tmdb_id:
            # get actual IMDB ID from TMDB
            r = self.session.get(
                "http://api.tmdb.org/3/{}/{}{}?api_key={}&language=en".format(category, tmdb_id, "" if is_movie else "/external_ids", settings.TMDB_API_KEY)
            )
            r.raise_for_status()
            return str(r.json().get("imdb_id", "")) or None
    return None