code: def _operation_name_without_postfix(operation_id):
      """
      Args:
          operation_id: operation name with optional postfix - text after / sign
      Returns:
          operation type - all characters before postfix (all characters if no postfix found)
      """
  
      postfix_sign = "/"
      # if the operation id has custom postfix
      if postfix_sign in operation_id:
          if operation_id.count(postfix_sign) > 1:
              raise ValueError(
                  f"Incorrect number of postfixes in {operation_id}"
              )
          return operation_id.split("/")[0]
      else:
          return operation_id
  
imports: import json
  import os
  from collections import defaultdict
  from dataclasses import dataclass
  from typing import Dict, List, Optional, TYPE_CHECKING, Union
  import numpy
  from golem.core.log import default_log
  from golem.utilities.data_structures import ensure_wrapped_in_sequence
  from fedot.core.constants import AUTO_PRESET_NAME, BEST_QUALITY_PRESET_NAME
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.json_evaluation import import_enums_from_str, import_strategy_from_str, read_field
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 9 for calling a global function with example usage: _operation_name_without_postfix(operation_id) and returns: operation_id, operation_id