python
from code2flow import Flowchart
def my_function(arg1, arg2):
if arg1 > 0:
print("Argument 1 is positive.")
else:
print("Argument 1 is non-positive.")
for i in range(arg2):
if i % 2 == 0:
print("Even number:", i)
else:
print("Odd number:", i)
flowchart = Flowchart.from_code(my_function)
flowchart.render("flowchart.png")