code: def contracts_data_path(version: Optional[str] = None):
      
      if version is None:
          return _BASE.joinpath('data')
      return _BASE.joinpath(f'data_{version}')
docs: Returns the deployment data directory for a version.