input: Write a python function to execute a given filename and its content in a custom environment.
  assert isinstance(Environment("some_path").execute("test.py", "print('Hello World')"), dict)
  assert isinstance(Environment("/another_path").execute("example.py", "x = 5\nprint(x)"), dict)
  assert isinstance(Environment("path").execute("sample.py", "for i in range(3): print(i)"), dict)
output: import os
  
  class Environment:
      def __init__(self, path):
          self.path = path
  
      def execute(self, filename, content):
          original_cwd = os.getcwd()
          os.makedirs(self.path, exist_ok=True)
          os.chdir(self.path)
  
          try:
              with open(filename, 'w') as file:
                  file.write(content)
              local_env = {}
              exec(content, {}, local_env)
          finally:
              os.chdir(original_cwd)
          
          return local_env