code: def _pow(x: float, y: float) -> float:
      if isinstance(x, torch.Tensor) or isinstance(y, torch.Tensor):
          return cast(float, torch.pow(cast(torch.Tensor, x), y))
      else:
          return np.power(x, y)
  
imports: from __future__ import annotations
  import logging
  from typing import cast
  from typing_extensions import Literal
  import numpy
  import torch
  from torch import nn
  from nni.mutable import Sample
  from nni.nas.profiler import Profiler, ExpressionProfiler
  from .supermodule._expression_utils import expression_expectation
label_desc: Use image node_id 1 for calling a global function with example usage: _pow(x, y) and returns: cast, np