Hello,
Nothing special to import, you just need a version of FEniCS including the mixed-dimensional features.
You can use the dedicated Docker container ceciledc/fenics_mixed_dimensional. The latest FEniCS Docker container should also include these functionalities now.
If you install FEniCS from source, mixed-dimensional features are available in the master branch.