(
    op: PlannedOperator, pgo: Optional[PGO] = None, data_schema={}
)
return search_space
Given an operator, this method compiles its schemas into a SearchSpace
Given an operator, this method compiles its schemas into a SearchSpace
Given an operator this method compiles its schemas into a SearchSpace
def op_to_search_space(
    op: PlannedOperator, pgo: Optional[PGO] = None, data_schema={}
) -> SearchSpace:
    """Given an operator, this method compiles its schemas into a SearchSpace"""
    search_space = SearchSpaceOperatorVisitor.run(op, pgo=pgo, data_schema=data_schema)

    if should_print_search_space("true", "all", "search_space"):
        name = op.name()
        if not name:
            name = "an operator"
        print(f"search space for {name}:\n {str(search_space)}")
    return search_space
def op_to_search_space ( op : PlannedOperator , pgo : Optional [ PGO ] = None , data_schema = { } ) -> SearchSpace : search_space = SearchSpaceOperatorVisitor . run ( op , pgo = pgo , data_schema = data_schema ) if should_print_search_space ( "true" , "all" , "search_space" ) : name = op . name ( ) if not name : name = "an operator" print ( f"search space for {name}:\n {str(search_space)}" ) return search_space