code: def BaseWithNamespace(self):
      # Generate foo with namespacing, with no extra arguments
      flatc(["--ts", "foo_with_ns.fbs"])
  
      # Should generate the module that exports both foo in its namespace
      # directory and its direct include, bar.
      assert_file_and_contents(
          "foo_with_ns_generated.ts",
          [
              "export { Bar } from './bar/bar.js';",
              "export { Foo } from './something/foo.js';",
          ],
      )
  
      # Foo should be placed in the namespaced directory. It should export
      # Foo, and the import of Bar should be relative to its location.
      assert_file_and_contents(
          "something/foo.ts",
          [
              "export class Foo {",
              "import { Bar } from '../bar/bar.js';",
          ],
      )
  
      # Included files, like bar, should not be generated.
      assert_file_doesnt_exists("bar.ts")
  
file_path: flatbuffers/tests/flatc/flatc_ts_tests.py
imports: from flatc_test import *
label_desc: Use image node_id 3 for calling the TsTests obj's underlying member method code with example usage: obj.BaseWithNamespace() without return types