code: def test_files_operations(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")
  
file_path: neptune-client/tests/e2e/standard/test_legacy_client.py
imports: from datetime import datetime
  import numpy
  from PIL import Image
  from neptune.legacy import Session
  from tests.e2e.base import fake
  from tests.e2e.utils import tmp_context
label_desc: Use image node_id 5 for calling the TestLegacyClient obj's underlying member method code with example usage: obj.test_files_operations(environment) without return types