Import and pass variables/arguments in Robot (Tricky)

Hey guys, thank you in advance and I’m sorry if my english is not perfect.

I’ve read some parts of Robot doc but I can’t find exactly what I’m looking for. In my project I have a “test descriptor” written in YAML, and we want to pass some variables/arguments (with specific values) to our Robot test. Then this Robot test, in the test cases, should use those variables in some of our python functions.

So, we import our code.py as library, and we want to “read/get/input/whatever it is” from that YAML file, then use those variables in our python methods.

PD: I know you maybe have the idea of passing the variables directly to the Python library, but no, we can’t do that even if it is possible.

Thank you so much again, maybe it is something easy but I’m a bit new in Robot.