code: def get(self, name: str) -> Profile:
      for p in self.profiles:
          if p.name == name:
              return p
      raise KeyError(name)
  
imports: import re
  from enum import Enum
  from typing import List, Optional, Tuple, Union
  from pydantic import Field, confloat, root_validator, validator
  from typing_extensions import Annotated, Literal
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.core.models.common import ForbidExtra
label_desc: Use image node_id 2 for calling the ProfilesConfig obj's underlying member method code with example usage: obj.get(name) and returns: p