def METHOD_NAME(self, environment):
    # given
    session = Session(api_token=environment.user_token)
    project = session.get_project(project_qualified_name=environment.project)
    experiment = project.create_experiment()
    # when
    # image
    with tmp_context():
        filename = fake.file_name(extension="png")
        tmp = numpy.random.rand(100, 100, 3) * 255
        im = Image.fromarray(tmp.astype("uint8")).convert("RGBA")
        im.save(filename)
        experiment.send_image("image", filename, name="name", description="desc")
    # artifact
    with tmp_context():
        filename = fake.file_name(extension="png")
        with open(filename, "wb") as file:
            file.write(fake.sentence().encode("utf-8"))
        experiment.send_artifact(filename)
        experiment.log_artifact(filename, destination="dir/text file artifact")
        with open(filename, mode="r") as f:
            experiment.send_artifact(f, destination="file stream.txt")
        experiment.log_artifact(filename, destination="dir to delete/art1")
        experiment.log_artifact(filename, destination="dir to delete/art2")
    experiment.delete_artifacts("dir to delete/art1")