code: def test_open_scm_controlled(tmp_dir, erepo_dir):
      erepo_dir.scm_gen(
          {"scm_controlled": "file content"}, commit="create file"
      )
  
      with api.open("scm_controlled", repo=os.fspath(erepo_dir)) as fd:
          assert fd.read() == "file content"
  
imports: import os
  import pytest
  from funcy import first, get_in
  from dvc import api
  from dvc.exceptions import OutputNotFoundError, PathMissingError
  from dvc.testing.api_tests import TestAPI
  from dvc.testing.tmp_dir import make_subrepo
  from dvc.utils.fs import remove
label_desc: Use image node_id 6 for calling a global function with example usage: test_open_scm_controlled(tmp_dir, erepo_dir) without return types