code: def settings_view_for_block(block_wrapper, settings_view_factory):
          
          state_root_hash = \
              block_wrapper.state_root_hash \
              if block_wrapper is not None else None
  
          return settings_view_factory.create_settings_view(state_root_hash)
docs: Returns the settings view for an arbitrary block.
  
          Args:
              block_wrapper (BlockWrapper): The block for which a settings
                  view is to be returned
              settings_view_factory (SettingsViewFactory): The settings
                  view factory used to create the SettingsView object
  
          Returns:
              SettingsView object associated with the block