original_docstring: 
      Create a custom dimension dictionary for Google Analytics.
  
      Pass in the relevant enum from this module, and either an instance or an actual value from that enum.
      
docstring: Create a custom dimension dictionary for Google Analytics.
  Pass in the relevant enum from this module, and either an instance or an actual value from that enum.
docstring_tokens: Create a custom dimension dictionary for Google Analytics . Pass in the relevant enum from this module and either an instance or an actual value from that enum .
code: def custom_dimension(custom_dimension_enum, value):
      """
      Create a custom dimension dictionary for Google Analytics.
  
      Pass in the relevant enum from this module, and either an instance or an actual value from that enum.
      """
      if isinstance(value, str):
          # If we've been given a string, try to convert it to an instance of the enum - if that fails then it'll be loud.
          custom_dimension_instance = custom_dimension_enum(value)
      elif value in CurrentProjectStageEnum:
          custom_dimension_instance = value
  
      return {
          "data_id": CUSTOM_DIMENSION_IDENTIFIERS[custom_dimension_enum],
          "data_value": custom_dimension_instance.value,
      }
code_tokens: def custom_dimension ( custom_dimension_enum , value ) : if isinstance ( value , str ) : custom_dimension_instance = custom_dimension_enum ( value ) elif value in CurrentProjectStageEnum : custom_dimension_instance = value return { "data_id" : CUSTOM_DIMENSION_IDENTIFIERS [ custom_dimension_enum ] , "data_value" : custom_dimension_instance . value , }
short_docstring: Create a custom dimension dictionary for Google Analytics.
short_docstring_tokens: Create a custom dimension dictionary for Google Analytics .
comment: """
      Create a custom dimension dictionary for Google Analytics.
  
      Pass in the relevant enum from this module, and either an instance or an actual value from that enum.
      """$SEP$# If we've been given a string, try to convert it to an instance of the enum - if that fails then it'll be loud.