I have a python function that suppose to take "sys.stdin" as input in a .py script like
...
output = function_name (sys.stdin)
...
Now if I want to test this function with a python shell command, how can I provide a "sys.stdin" as if the python shell could recognize a bash command like
>>> output = function_name (cat some_file | head -1)