code: def format_env(key, value: Union[None, bytes, str]) -> str:
      
      if value is None:
          return key
      if isinstance(value, bytes):
          value = value.decode("utf-8")
  
      return "{key}={value}".format(key=key, value=value)
docs: Formats envs from {key:value} to ['key=value']