input: Write a python function to create a Foo object and initialize it with given name, num, and array.
  assert foo_instance.name == "test_name"
  assert foo_instance.num == 42
  assert foo_instance.array == [1, 2, 3, 4, 5]
output: def create_foo(name, num, array):
      class Foo:
          def __init__(self, name, num, array):
              self.name = name
              self.num = num
              self.array = array
  
      return Foo(name, num, array)
  
  foo_instance = create_foo("test_name", 42, [1, 2, 3, 4, 5])