code: def get_nested_blocks_spec(self):
          
          return [
              block_spec if isinstance(block_spec, NestedXBlockSpec) else NestedXBlockSpec(block_spec)
              for block_spec in self.allowed_nested_blocks
          ]
docs: Converts allowed_nested_blocks items to NestedXBlockSpec to provide common interface