code: def construct_bentoml_model_name(
      model_name: str, model_id: str, backend: str = "pt"
  ):
      name = "-".join([backend, model_name, model_id])
      name = name.replace("/", "--")
      name = inflection.dasherize(name)
      return name
  
file_path: BentoML/src/bentoml/_internal/frameworks/diffusers_runners/utils.py
imports: from __future__ import annotations
  import logging
  import diffusers
  import inflection
  from huggingface_hub import model_info
  import bentoml
  from bentoml import Tag
  from bentoml._internal.frameworks.diffusers import _str2cls
  from bentoml._internal.frameworks.diffusers import import_model
  from bentoml.exceptions import BentoMLException
  from bentoml.exceptions import NotFound
label_desc: Use image node_id 1 for calling a global function with example usage: construct_bentoml_model_name(model_name, model_id, backend) and returns: name