def METHOD_NAME(self):
    """Check if the conn_id matches with provided path."""
    if not self.conn_id:
        return
    connection_type = BaseHook.get_connection(self.conn_id).conn_type
    if connection_type not in self.supported_conn_type:
        raise ValueError(
            f"Connection type {connection_type} is not supported for {self.path}. "
            f"Supported types are {self.supported_conn_type}"
        )