code: def access_control_options(
      allow_origins: list[str]
      | str
      | None = Provide[cors.access_control_allow_origins],
      allow_origin_regex: str
      | None = Provide[cors.access_control_allow_origin_regex],
      allow_credentials: bool
      | None = Provide[cors.access_control_allow_credentials],
      allow_methods: list[str]
      | str
      | None = Provide[cors.access_control_allow_methods],
      allow_headers: list[str]
      | str
      | None = Provide[cors.access_control_allow_headers],
      max_age: int | None = Provide[cors.access_control_max_age],
      expose_headers: list[str]
      | str
      | None = Provide[cors.access_control_expose_headers],
  ) -> dict[str, list[str] | str | int]:
      if isinstance(allow_origins, str):
          allow_origins = [allow_origins]
  
      if isinstance(allow_headers, str):
          allow_headers = [allow_headers]
  
      return {
          k: v
          for k, v in {
              "allow_origins": allow_origins,
              "allow_origin_regex": allow_origin_regex,
              "allow_credentials": allow_credentials,
              "allow_methods": allow_methods,
              "allow_headers": allow_headers,
              "max_age": max_age,
              "expose_headers": expose_headers,
          }.items()
          if v is not None
      }
  
imports: from __future__ import annotations
  import logging
  import math
  import os
  import typing
  import uuid
  from copy import deepcopy
  from dataclasses import dataclass
  from pathlib import Path
  from typing import TYPE_CHECKING
  import schema
  import yaml
  from deepmerge.merger import Merger
  from simple_di import Provide
  from simple_di import providers
  from ...exceptions import BentoMLConfigException
  from ..context import component_context
  from ..context import trace_context
  from ..resource import CpuResource
  from ..resource import system_resources
  from ..utils import split_with_quotes
  from ..utils import validate_or_create_dir
  from ..utils.unflatten import unflatten
  from .None import expand_env_var
  from .helpers import expand_env_var_in_values
  from .helpers import flatten_dict
  from .helpers import get_default_config
  from .helpers import import_configuration_spec
  from .helpers import load_config_file
label_desc: Use image node_id 15 for calling the _BentoMLContainerClass obj's underlying member method code with example usage: obj.access_control_options(allow_origins, allow_origin_regex, allow_credentials, allow_methods, allow_headers, max_age, expose_headers) and returns: unknown