code: def test_add_readme(path=None):
      ds = Dataset(path).create(force=True)
      ds.save()
      if False:
          # TODO make conditional on the presence of datalad-deprecated
          ds.aggregate_metadata()
      assert_repo_status(ds.path)
      assert_status("ok", ds.add_readme())
      # should use default name
      content = open(opj(path, "README.md")).read()
      if False:
          # TODO make conditional on the presence of datalad-deprecated
          ok_startswith(
              content,
              """\
  # Dataset "demo_ds"
  
  this is for play
  
  ### Authors
  
  - Betty
  - Tom
  
  ### License
  
  PDDL
  
  ## General information
  
  This is a DataLad dataset (id: {id}).
  """.format(
                  id=ds.id
              ),
          )
          # make sure that central README references are present
      assert_in(
          """More information on how to install DataLad and [how to install](http://handbook.datalad.org/en/latest/intro/installation.html)
  it can be found in the [DataLad Handbook](https://handbook.datalad.org/en/latest/index.html).
  """,
          content,
      )
      # no unexpectedly long lines
      assert all([len(l) < 160 for l in content.splitlines()])
  
      # should skip on re-run
      assert_status("notneeded", ds.add_readme())
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_add_readme(path) without return types