def METHOD_NAME(self):
    with tempfile.NamedTemporaryFile(delete=False) as f:
        input_dict = {'image': tio.ScalarImage(f.name)}
        tio.Subject(input_dict)
        tio.Subject(**input_dict)