code: def state_view_for_block(block_wrapper, state_view_factory):
          
          state_root_hash = \
              block_wrapper.state_root_hash \
              if block_wrapper is not None else None
  
          return state_view_factory.create_view(state_root_hash)
docs: Returns the state view for an arbitrary block.
  
          Args:
              block_wrapper (BlockWrapper): The block for which a state
                  view is to be returned
              state_view_factory (StateViewFactory): The state view factory
                  used to create the StateView object
  
          Returns:
              StateView object associated with the block