def METHOD_NAME(
    futures_contract_strategy: futuresContractStrategy,
    instrument_code: str,
    contract_str: str,
):
    list_of_date_str = futures_contract_strategy.contract_date.list_of_date_str
    if (
        futures_contract_strategy.instrument_code == instrument_code
        and contract_str in list_of_date_str
    ):
        return True
    else:
        return False