Import a module from a file into IEX

What is the proper way to load a module from a file in to IEX?

In the python world, doing something like this pretty standard:

from . import xyz
xyz.do_something()

I did a bit of google and this is what I found
$ iex

Code.load_file(“some_file.exs”)
moduleFromSomeFile.doSomething(1)

I was wondering if this is the “right” way to import a module in to iex and just inspecting/playing around with functions.

Thank you