class_docstr: Blocks class to help creating the blocks.
docstr: Returns required search space for all blocks.
docstr_tok: ["Returns","required","search","space","for","all","blocks","."]
code: def search_space(blocks_to_use=None):
      """Returns required search space for all blocks."""
      search_space = ms_hparameters.Hyperparameters()
      for block_type in BlockType:
          if block_type == BlockType.EMPTY_BLOCK:
              continue
          if blocks_to_use is None or block_type.name in blocks_to_use:
              target = registry.lookup(block_type.name, block.Block)
              hps = target.requires_hparams()
              if hps:
                  search_space.merge(
                      hps, name_prefix=(block_type.name + "_")
                  )
  
      return search_space
  
file_path: model_search/model_search/block_builder.py
imports: import enum
  from model_search import block
  from model_search import registry
  from model_search.hparams import hyperparameters
label_desc: Use image node_id 4 for calling the Blocks obj's underlying member method code with example usage: obj.search_space(blocks_to_use) and returns: search_space