code: def f(dfn, dfd, size=None):
      # Generate samples from the uniform distribution
      x1 = ivy.gamma(
          ivy.to_scalar(ivy.divide(dfn, 2)),
          2.0,
          shape=size,
          dtype="float64",
      )
      x2 = ivy.gamma(
          ivy.to_scalar(ivy.divide(dfd, 2)),
          2.0,
          shape=size,
          dtype="float64",
      )
      # Calculate the F-distributed samples
      samples = ivy.divide(
          ivy.divide(x1, ivy.array(dfn)), ivy.divide(x2, ivy.array(dfd))
      )
      return samples
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar
  from ivy import with_supported_dtypes
label_desc: Use image node_id 7 for calling a global function with example usage: f(dfn, dfd, size) and returns: samples