def _get_custom_contract(param_contract):
if not isinstance(param_contract, str):<EOL><INDENT>return None<EOL><DEDENT>for custom_contract in _CUSTOM_CONTRACTS:<EOL><INDENT>if re.search(r"<STR_LIT>".format(custom_contract), param_contract):<EOL><INDENT>return custom_contract<EOL><DEDENT><DEDENT>return None<EOL>
Return True if parameter contract is a custom contract, False otherwise.